Struct Point3
Source pub struct Point3 {
pub x: f32,
pub y: f32,
pub z: f32,
}
Expand description
A 3D Point with x, y and z coordinates: Point3
Instantiates a new Point3 with x, y and z.
Creates a new Vector3 relative to position (0, 0, 0)
Instantiates a Point3 with (0, 0, 0)
Instantiates a Point3 with (1, 1, 1)
Transforms a Point 3 from one vectorspace to another via a matrix3x3 transform.
Same as Point2 but with Point3, Matrix3x3 and Vector3.
Overloads + for Points and Vectors: P + PQ = Q
The resulting type after applying the +
operator.
Formats the value using the given formatter.
Read more
Implements the transform matrix of a point 3 into another point 3.
The order should be matrix * point because of 3x3 * 3x1 = 3x1
The resulting type after applying the *
operator.
Implements the dot product of &Point3 and &Vector3 as ‘*’.
The resulting type after applying the *
operator.
Implements the transform matrix of a point 3 into another point 3.
The order should be matrix * point because of 3x3 * 3x1 = 3x1
The resulting type after applying the *
operator.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.