[−][src]Struct axgeom::Ray
A Ray.
Fields
point: Vec2<N>
dir: Vec2<N>
Implementations
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 + Debug> Ray<N>
[src]
pub fn cast_to_aaline<A: Axis>(&self, a: A, line: N) -> CastResult<N>
[src]
pub fn cast_to_rect(&self, rect: &Rect<N>) -> CastResult<N>
[src]
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,
N: RefUnwindSafe,
impl<N> Send for Ray<N> where
N: Send,
N: Send,
impl<N> Sync for Ray<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Ray<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Ray<N> where
N: UnwindSafe,
N: UnwindSafe,
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,