pub trait MatRotate3D<T, V> {
// Required methods
fn from_x_rotation(theta: T) -> Self;
fn from_y_rotation(theta: T) -> Self;
fn from_rotation(axis: V, theta: T) -> Self;
fn from_orthonormal_basis(normal: Vec3<T>) -> Self;
}Expand description
trait for minimum of 3x3 matrices applying rotation to x, y or aribtrary 3D axes
Required Methods§
Sourcefn from_x_rotation(theta: T) -> Self
fn from_x_rotation(theta: T) -> Self
create rotation about the x axis by theta radians
Sourcefn from_y_rotation(theta: T) -> Self
fn from_y_rotation(theta: T) -> Self
create rotation about the y axis by theta radians
Sourcefn from_rotation(axis: V, theta: T) -> Self
fn from_rotation(axis: V, theta: T) -> Self
create rotation about the abitrary axis by theta radians
Sourcefn from_orthonormal_basis(normal: Vec3<T>) -> Self
fn from_orthonormal_basis(normal: Vec3<T>) -> Self
create an othonormal basis from the normal vector
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".