Struct navmesh::NavVec3 [−][src]
Fields
x: Scalar
y: Scalar
z: Scalar
Implementations
pub fn raycast_line_exact(
from: Self,
to: Self,
a: Self,
b: Self,
normal: Self
) -> Option<Self>
line: (origin, normal)
Trait Implementations
The default tolerance to use when testing values that are close together. Read more
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
The inverse of AbsDiffEq::abs_diff_eq
.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
The (fixed) number of dimensions of this point type.
Returns a mutable reference to the nth element of this point.
Creates a new point with all components set to a certain value.
The default relative tolerance for testing values that are far-apart. Read more
A test for equality that uses a relative comparison if the values are far apart.
The inverse of RelativeEq::relative_eq
.
The default ULPs to tolerate when testing values that are far-apart. Read more
A test for equality that uses units in the last place (ULP) if the values are far apart.
Auto Trait Implementations
impl RefUnwindSafe for NavVec3
impl UnwindSafe for NavVec3
Blanket Implementations
Mutably borrows from an owned value. Read more
type Point = <S as HasPosition>::Point
type Point = <S as HasPosition>::Point
The object’s point type.
Returns the object’s minimal bounding rectangle. Read more
pub fn distance2(
&self,
point: &<S as HasPosition>::Point
) -> <<S as HasPosition>::Point as PointN>::Scalar
pub fn distance2(
&self,
point: &<S as HasPosition>::Point
) -> <<S as HasPosition>::Point as PointN>::Scalar
Returns the squared euclidean distance from the object’s contour. Returns a value samller than zero if the point is contained within the object. Read more
Returns true if a given point is contained in this object.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub unsafe fn to_subset_unchecked(&self) -> SS
pub unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.