Struct graphene::Point3D [−][src]
pub struct Point3D(_);
Expand description
A point with three components: X, Y, and Z.
Implementations
Normalizes the coordinates of a Point3D
using the
given viewport and clipping planes.
The coordinates of the resulting Point3D
will be
in the [ -1, 1 ] range.
viewport
a Rect
representing a viewport
z_near
the coordinate of the near clipping plane, or 0 for the default near clipping plane
z_far
the coordinate of the far clipping plane, or 1 for the default far clipping plane
Returns
res
the return location for the
normalized Point3D
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for Point3D
impl UnwindSafe for Point3D
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,