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 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.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.