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
transform(v : Vec3) : Vec3
Source