[−][src]Struct pathfinder_geometry::line_segment::LineSegment2F
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.
fn add(self, point: Vector2F) -> LineSegment2F
[src]
impl Clone for LineSegment2F
[src]
fn clone(&self) -> LineSegment2F
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LineSegment2F
[src]
impl Debug for LineSegment2F
[src]
impl Default for LineSegment2F
[src]
fn default() -> LineSegment2F
[src]
impl Mul<LineSegment2F> for Transform2F
[src]
type Output = LineSegment2F
The resulting type after applying the *
operator.
fn mul(self, line_segment: LineSegment2F) -> LineSegment2F
[src]
impl Mul<Vector2F> for LineSegment2F
[src]
type Output = LineSegment2F
The resulting type after applying the *
operator.
fn mul(self, factors: Vector2F) -> LineSegment2F
[src]
impl Mul<f32> for LineSegment2F
[src]
type Output = LineSegment2F
The resulting type after applying the *
operator.
fn mul(self, factor: f32) -> LineSegment2F
[src]
impl MulAssign<Vector2F> for LineSegment2F
[src]
fn mul_assign(&mut self, factors: Vector2F)
[src]
impl PartialEq<LineSegment2F> for LineSegment2F
[src]
fn eq(&self, other: &LineSegment2F) -> bool
[src]
fn ne(&self, other: &LineSegment2F) -> bool
[src]
impl StructuralPartialEq for LineSegment2F
[src]
impl Sub<Vector2F> for LineSegment2F
[src]
type Output = LineSegment2F
The resulting type after applying the -
operator.
fn sub(self, point: Vector2F) -> LineSegment2F
[src]
Auto Trait Implementations
impl RefUnwindSafe for LineSegment2F
impl Send for LineSegment2F
impl Sync for LineSegment2F
impl Unpin for LineSegment2F
impl UnwindSafe for LineSegment2F
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,