Struct truster::tuple::Tuple [−][src]
pub struct Tuple { /* fields omitted */ }
Expand description
Tuple represents a 3D tuple. See the module’s documentation for more information.
Implementations
Returns a new tuple with the given components. You should use Tuple::point and Tuple::vector instead.
Returns the dot product between self
and other
. See the module’s documentation for
examples. Only works for vectors, not points.
Returns the cross product between self
and other
. See the module’s documentation for
examples. Only works for vectors, not points.
Returns the square of the euclidean norm of self
. See the module’s documentation for
examples. Only works for vectors, not points.
Returns the norm of self
. See the module’s documentation for examples. Only works for
vectors, not points.
Returns a vector in the same direction as self
, but with euclidean norm of one. See the
module’s documentation for examples. Only works for vectors, not points.
Changes self
to have a euclidean norm of one, while keeping its direction. See the
module’s documentation for examples. Only works for vectors, not points.
Trait Implementations
Performs the +=
operation. Read more
Performs the /=
operation. Read more
Performs the *=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl RefUnwindSafe for Tuple
impl UnwindSafe for Tuple
Blanket Implementations
Mutably borrows from an owned value. Read more