[−][src]Struct oxygengine_navigation::resource::NavVec3
Fields
x: Scalar
y: Scalar
z: Scalar
Methods
impl NavVec3
[src]
pub fn new(x: Scalar, y: Scalar, z: Scalar) -> Self
[src]
pub fn sqr_magnitude(self) -> Scalar
[src]
pub fn magnitude(self) -> Scalar
[src]
pub fn cross(self, other: Self) -> Self
[src]
pub fn dot(self, other: Self) -> Scalar
[src]
pub fn normalize(self) -> Self
[src]
pub fn project(self, from: Self, to: Self) -> Scalar
[src]
pub fn unproject(from: Self, to: Self, t: Scalar) -> Self
[src]
pub fn is_above_plane(self, origin: Self, normal: Self) -> bool
[src]
pub fn project_on_plane(self, origin: Self, normal: Self) -> Self
[src]
pub fn lines_intersects(
a_from: Self,
a_to: Self,
b_from: Self,
b_to: Self,
normal: Self
) -> bool
[src]
a_from: Self,
a_to: Self,
b_from: Self,
b_to: Self,
normal: Self
) -> bool
Trait Implementations
impl Clone for NavVec3
[src]
fn clone(&self) -> NavVec3
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for NavVec3
[src]
impl From<(f64, f64, f64)> for NavVec3
[src]
impl PartialEq<NavVec3> for NavVec3
[src]
impl Copy for NavVec3
[src]
impl Debug for NavVec3
[src]
impl Sub<NavVec3> for NavVec3
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl Sub<f64> for NavVec3
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Scalar) -> Self
[src]
impl Div<NavVec3> for NavVec3
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl Div<f64> for NavVec3
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Scalar) -> Self
[src]
impl Add<NavVec3> for NavVec3
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl Add<f64> for NavVec3
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Scalar) -> Self
[src]
impl Mul<NavVec3> for NavVec3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Mul<f64> for NavVec3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Scalar) -> Self
[src]
impl PointN for NavVec3
[src]
Auto Trait Implementations
impl Unpin for NavVec3
impl Sync for NavVec3
impl Send for NavVec3
impl UnwindSafe for NavVec3
impl RefUnwindSafe for NavVec3
Blanket Implementations
impl<T> From<T> for T
[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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
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,
impl<T> TryDefault for T where
T: Default,
T: Default,
fn try_default() -> Result<T, String>
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> Erased for T
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
T: Copy + PartialEq<T> + Any + Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<S> SpatialObject for S where
S: HasPosition,
[src]
S: HasPosition,
type Point = <S as HasPosition>::Point
The object's point type.
fn mbr(&self) -> BoundingRect<<S as HasPosition>::Point>
[src]
fn distance2(
&self,
point: &<S as HasPosition>::Point
) -> <<S as HasPosition>::Point as PointN>::Scalar
[src]
&self,
point: &<S as HasPosition>::Point
) -> <<S as HasPosition>::Point as PointN>::Scalar
fn contains(&self, point: &<S as HasPosition>::Point) -> bool
[src]
impl<V> HasPosition for V where
V: PointN,
[src]
V: PointN,