[][src]Struct pathfinder_geometry::line_segment::LineSegment2F

pub struct LineSegment2F(pub F32x4);

Methods

impl LineSegment2F[src]

pub fn new(from: Vector2F, to: Vector2F) -> LineSegment2F[src]

pub fn from(self) -> Vector2F[src]

pub fn to(self) -> Vector2F[src]

pub fn set_from(&mut self, point: Vector2F)[src]

pub fn set_to(&mut self, point: Vector2F)[src]

pub fn from_x(self) -> f32[src]

pub fn from_y(self) -> f32[src]

pub fn to_x(self) -> f32[src]

pub fn to_y(self) -> f32[src]

pub fn set_from_x(&mut self, x: f32)[src]

pub fn set_from_y(&mut self, y: f32)[src]

pub fn set_to_x(&mut self, x: f32)[src]

pub fn set_to_y(&mut self, y: f32)[src]

pub fn split(self, t: f32) -> (LineSegment2F, LineSegment2F)[src]

pub fn split_at_x(self, x: f32) -> (LineSegment2F, LineSegment2F)[src]

pub fn split_at_y(self, y: f32) -> (LineSegment2F, LineSegment2F)[src]

pub fn solve_t_for_x(self, x: f32) -> f32[src]

pub fn solve_t_for_y(self, y: f32) -> f32[src]

pub fn solve_x_for_y(self, y: f32) -> f32[src]

pub fn solve_y_for_x(self, x: f32) -> f32[src]

pub fn reversed(self) -> LineSegment2F[src]

pub fn upper_point(self) -> Vector2F[src]

pub fn min_x(self) -> f32[src]

pub fn max_x(self) -> f32[src]

pub fn min_y(self) -> f32[src]

pub fn max_y(self) -> f32[src]

pub fn y_winding(self) -> i32[src]

pub fn orient(self, y_winding: i32) -> LineSegment2F[src]

pub fn square_length(self) -> f32[src]

pub fn vector(self) -> Vector2F[src]

pub fn intersection_t(self, other: LineSegment2F) -> Option<f32>[src]

pub fn sample(self, t: f32) -> Vector2F[src]

pub fn midpoint(self) -> Vector2F[src]

pub fn offset(self, distance: f32) -> LineSegment2F[src]

pub fn is_zero_length(self) -> bool[src]

Trait Implementations

impl Add<Vector2F> for LineSegment2F[src]

type Output = LineSegment2F

The resulting type after applying the + operator.

impl Clone for LineSegment2F[src]

impl Copy for LineSegment2F[src]

impl Debug for LineSegment2F[src]

impl Default for LineSegment2F[src]

impl Mul<LineSegment2F> for Transform2F[src]

type Output = LineSegment2F

The resulting type after applying the * operator.

impl Mul<Vector2F> for LineSegment2F[src]

type Output = LineSegment2F

The resulting type after applying the * operator.

impl Mul<f32> for LineSegment2F[src]

type Output = LineSegment2F

The resulting type after applying the * operator.

impl MulAssign<Vector2F> for LineSegment2F[src]

impl PartialEq<LineSegment2F> for LineSegment2F[src]

impl StructuralPartialEq for LineSegment2F[src]

impl Sub<Vector2F> for LineSegment2F[src]

type Output = LineSegment2F

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.