Struct classicube_sys::Matrix
source ·
[−]Fields
row1: Vec4
row2: Vec4
row3: Vec4
row4: Vec4
Implementations
Returns a matrix representing a counter-clockwise rotation around X axis.
Returns a matrix representing a counter-clockwise rotation around Y axis.
Returns a matrix representing a counter-clockwise rotation around Z axis.
Returns a matrix representing a translation to the given coordinates.
Returns a matrix representing a scaling by the given factors.
pub fn orthographic(
left: c_float,
right: c_float,
top: c_float,
bottom: c_float,
zNear: c_float,
zFar: c_float
) -> Self
pub fn perspective_field_of_view(
fovy: c_float,
aspect: c_float,
z_near: c_float,
z_far: c_float
) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Matrix
impl UnwindSafe for Matrix
Blanket Implementations
Mutably borrows from an owned value. Read more