Struct pathfinder_geometry::line_segment::LineSegment2F
source · pub struct LineSegment2F(pub F32x4);
Tuple Fields§
§0: F32x4
Implementations§
source§impl LineSegment2F
impl LineSegment2F
pub fn new(from: Vector2F, to: Vector2F) -> LineSegment2F
pub fn from(self) -> Vector2F
pub fn to(self) -> Vector2F
pub fn set_from(&mut self, point: Vector2F)
pub fn set_to(&mut self, point: Vector2F)
pub fn from_x(self) -> f32
pub fn from_y(self) -> f32
pub fn to_x(self) -> f32
pub fn to_y(self) -> f32
pub fn set_from_x(&mut self, x: f32)
pub fn set_from_y(&mut self, y: f32)
pub fn set_to_x(&mut self, x: f32)
pub fn set_to_y(&mut self, y: f32)
pub fn split(self, t: f32) -> (LineSegment2F, LineSegment2F)
pub fn split_at_x(self, x: f32) -> (LineSegment2F, LineSegment2F)
pub fn split_at_y(self, y: f32) -> (LineSegment2F, LineSegment2F)
pub fn solve_t_for_x(self, x: f32) -> f32
pub fn solve_t_for_y(self, y: f32) -> f32
pub fn solve_x_for_y(self, y: f32) -> f32
pub fn solve_y_for_x(self, x: f32) -> f32
pub fn reversed(self) -> LineSegment2F
pub fn upper_point(self) -> Vector2F
pub fn min_x(self) -> f32
pub fn max_x(self) -> f32
pub fn min_y(self) -> f32
pub fn max_y(self) -> f32
pub fn y_winding(self) -> i32
pub fn orient(self, y_winding: i32) -> LineSegment2F
pub fn square_length(self) -> f32
pub fn vector(self) -> Vector2F
pub fn intersection_t(self, other: LineSegment2F) -> Option<f32>
pub fn sample(self, t: f32) -> Vector2F
pub fn midpoint(self) -> Vector2F
pub fn offset(self, distance: f32) -> LineSegment2F
pub fn is_zero_length(self) -> bool
Trait Implementations§
source§impl Add<Vector2F> for LineSegment2F
impl Add<Vector2F> for LineSegment2F
§type Output = LineSegment2F
type Output = LineSegment2F
The resulting type after applying the
+
operator.source§impl Clone for LineSegment2F
impl Clone for LineSegment2F
source§fn clone(&self) -> LineSegment2F
fn clone(&self) -> LineSegment2F
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LineSegment2F
impl Debug for LineSegment2F
source§impl Default for LineSegment2F
impl Default for LineSegment2F
source§fn default() -> LineSegment2F
fn default() -> LineSegment2F
Returns the “default value” for a type. Read more
source§impl Mul<LineSegment2F> for Transform2F
impl Mul<LineSegment2F> for Transform2F
§type Output = LineSegment2F
type Output = LineSegment2F
The resulting type after applying the
*
operator.source§fn mul(self, line_segment: LineSegment2F) -> LineSegment2F
fn mul(self, line_segment: LineSegment2F) -> LineSegment2F
Performs the
*
operation. Read moresource§impl Mul<Vector2F> for LineSegment2F
impl Mul<Vector2F> for LineSegment2F
§type Output = LineSegment2F
type Output = LineSegment2F
The resulting type after applying the
*
operator.source§impl Mul<f32> for LineSegment2F
impl Mul<f32> for LineSegment2F
§type Output = LineSegment2F
type Output = LineSegment2F
The resulting type after applying the
*
operator.source§impl MulAssign<Vector2F> for LineSegment2F
impl MulAssign<Vector2F> for LineSegment2F
source§fn mul_assign(&mut self, factors: Vector2F)
fn mul_assign(&mut self, factors: Vector2F)
Performs the
*=
operation. Read moresource§impl PartialEq for LineSegment2F
impl PartialEq for LineSegment2F
source§fn eq(&self, other: &LineSegment2F) -> bool
fn eq(&self, other: &LineSegment2F) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub<Vector2F> for LineSegment2F
impl Sub<Vector2F> for LineSegment2F
§type Output = LineSegment2F
type Output = LineSegment2F
The resulting type after applying the
-
operator.impl Copy for LineSegment2F
impl StructuralPartialEq for LineSegment2F
Auto Trait Implementations§
impl Freeze for LineSegment2F
impl RefUnwindSafe for LineSegment2F
impl Send for LineSegment2F
impl Sync for LineSegment2F
impl Unpin for LineSegment2F
impl UnwindSafe for LineSegment2F
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more