Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Opal::Graphics::Mat4
Inherits
Struct
<
Value
<
Object
4x4 Matrix for 3D affine transformations and rotations
Constructors
identity
Source
new
(vals :
StaticArray
(
Float64
, 16))
Source
rotation_x
(angle :
Float64
) :
Mat4
Source
rotation_y
(angle :
Float64
) :
Mat4
Source
rotation_z
(angle :
Float64
) :
Mat4
Source
Instance methods
*
(other :
Mat4
) :
Mat4
Source
m
Source
transform
(v :
Vec3
) :
Vec3
Source