[−][src]Struct arcs::primitives::Line
A line connecting Line::start
to Line::end
.
Fields
start: Point2D<f64, S>
end: Point2D<f64, S>
Methods
impl<S> Line<S>
[src]
pub const fn new(start: Point2D<f64, S>, end: Point2D<f64, S>) -> Self
[src]
pub fn displacement(&self) -> Vector2D<f64, S>
[src]
pub fn direction(&self) -> Vector2D<f64, S>
[src]
pub fn length(self) -> f64
[src]
pub fn perpendicular_distance_to(self, point: Point2D<f64, S>) -> Length<f64, S>
[src]
Trait Implementations
impl<S> Clone for Line<S>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S> Copy for Line<S>
[src]
impl<S: Debug> Debug for Line<S>
[src]
impl<S: Default> Default for Line<S>
[src]
impl<S: PartialEq> PartialEq<Line<S>> for Line<S>
[src]
impl<S> StructuralPartialEq for Line<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for Line<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Line<S> where
S: Send,
S: Send,
impl<S> Sync for Line<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Line<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Line<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> RoundFrom<T> for T
[src]
fn round_from(x: T) -> T
[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
[src]
U: RoundFrom<T>,
fn round_into(self) -> U
[src]
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> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[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>,