Struct graphene::Vec3 [−][src]
pub struct Vec3(_);
Expand description
A structure capable of holding a vector with three dimensions: x, y, and z.
The contents of the Vec3
structure are private and should
never be accessed directly.
Implementations
Retrieves the first component of the given vector self
.
Returns
the value of the first component of the vector
Retrieves the second component of the given vector self
.
Returns
the value of the second component of the vector
Retrieves the third component of the given vector self
.
Returns
the value of the third component of the vector
Provides a constant pointer to a vector with three components, all sets to 1.
Returns
a constant vector
Provides a constant pointer to a vector with three components with values set to (1, 0, 0).
Returns
a constant vector
Provides a constant pointer to a vector with three components with values set to (0, 1, 0).
Returns
a constant vector
Provides a constant pointer to a vector with three components with values set to (0, 0, 1).
Returns
a constant vector
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 Vec3
impl UnwindSafe for Vec3
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>,