pub struct Line(pub Point, pub Point);Expand description
A 2D line type.
Tuple Fields§
§0: Point§1: PointImplementations§
Trait Implementations§
Source§impl CalcBounds2D for Line
impl CalcBounds2D for Line
Source§fn calc_bounds_2d(&self) -> Bounds2D
fn calc_bounds_2d(&self) -> Bounds2D
Fetch bounds.
Source§impl From<Line> for Geometry2D
impl From<Line> for Geometry2D
Source§impl TotalMemory for Line
impl TotalMemory for Line
Source§fn total_memory(&self) -> usize
fn total_memory(&self) -> usize
Total amount of memory in bytes.
Source§fn stack_memory(&self) -> usize
fn stack_memory(&self) -> usize
Get amount of stack memory in bytes.
Source§fn heap_memory(&self) -> usize
fn heap_memory(&self) -> usize
Get amount of heap memory in bytes.
Source§impl Transformed2D for Line
impl Transformed2D for Line
Source§fn transformed_2d(&self, mat: &Mat3) -> Self
fn transformed_2d(&self, mat: &Mat3) -> Self
Transform from matrix.
Source§impl VertexCount for Line
impl VertexCount for Line
Source§fn vertex_count(&self) -> usize
fn vertex_count(&self) -> usize
Return vertex count.
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more