[−][src]Struct makepad_geometry::quadratic_segment::QuadraticSegment
A quadratic bezier curve segment in 2-dimensional Euclidian space.
Fields
p0: Point
p1: Point
p2: Point
Methods
impl QuadraticSegment
[src]
pub fn new(p0: Point, p1: Point, p2: Point) -> QuadraticSegment
[src]
Creates a new quadratic bezier curve segment with the given control points.
pub fn is_approximately_linear(self, epsilon: f32) -> bool
[src]
Returns true if self
is approximately linear with tolerance epsilon
.
pub fn split(self, t: f32) -> (QuadraticSegment, QuadraticSegment)
[src]
Splits self
into two quadratic Bezier curve segments, at parameter t
.
pub fn linearize(self, epsilon: f32) -> Linearize
[src]
Returns an iterator over the points of a polyline that approximates self
with tolerance
epsilon
, excluding the first point.
Trait Implementations
impl Transform for QuadraticSegment
[src]
fn transform<T>(self, t: &T) -> QuadraticSegment where
T: Transformation,
[src]
T: Transformation,
fn transform_mut<T>(&mut self, t: &T) where
T: Transformation,
[src]
T: Transformation,
impl Clone for QuadraticSegment
[src]
fn clone(&self) -> QuadraticSegment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for QuadraticSegment
[src]
impl PartialEq<QuadraticSegment> for QuadraticSegment
[src]
fn eq(&self, other: &QuadraticSegment) -> bool
[src]
fn ne(&self, other: &QuadraticSegment) -> bool
[src]
impl Debug for QuadraticSegment
[src]
impl StructuralPartialEq for QuadraticSegment
[src]
Auto Trait Implementations
impl Send for QuadraticSegment
impl Sync for QuadraticSegment
impl Unpin for QuadraticSegment
impl UnwindSafe for QuadraticSegment
impl RefUnwindSafe for QuadraticSegment
Blanket Implementations
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 = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,