[][src]Struct axgeom::Ray

#[must_use]
pub struct Ray<N> {
    pub point: Vec2<N>,
    pub dir: Vec2<N>,
}

A Ray.

Fields

point: Vec2<N>dir: Vec2<N>

Methods

impl<B: Copy> Ray<B>[src]

pub fn inner_as<A: PrimitiveFrom<B>>(&self) -> Ray<A>[src]

impl<N: Copy + Add<Output = N> + Mul<Output = N>> Ray<N>[src]

pub fn point_at_tval(&self, tval: N) -> Vec2<N>[src]

impl<N> Ray<N>[src]

pub fn inner_into<B: From<N>>(self) -> Ray<B>[src]

pub fn inner_try_into<B: TryFrom<N>>(self) -> Result<Ray<B>, B::Error>[src]

impl<N: PartialOrd + Copy> Ray<N>[src]

pub fn range_side(&self, axis: impl Axis, range: &Range<N>) -> Ordering[src]

impl<N: Float + FloatType> Ray<N>[src]

pub fn cast_to_circle(&self, center: Vec2<N>, radius: N) -> CastResult<N>[src]

Checks if a ray intersects a circle.

impl<N: Num + Signed + PartialOrd + Copy + Ord + Debug> Ray<N>[src]

pub fn cast_to_rect(&self, rect: &Rect<N>) -> CastResult<N>[src]

Returns if a ray intersects a box.

Trait Implementations

impl<N: Clone> Clone for Ray<N>[src]

impl<N: Copy> Copy for Ray<N>[src]

impl<N: Debug> Debug for Ray<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Ray<N> where
    N: RefUnwindSafe

impl<N> Send for Ray<N> where
    N: Send

impl<N> Sync for Ray<N> where
    N: Sync

impl<N> Unpin for Ray<N> where
    N: Unpin

impl<N> UnwindSafe for Ray<N> where
    N: UnwindSafe

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.