struct

Mat4(T)

Inherits Struct < Value < Object

Constructors

new(x : T)
Source

Class methods

frustum(left : T, right : T, bottom : T, top : T, near : T, far : T) : Mat4(T)
Source
ortho(left : T, right : T, bottom : T, top : T, near : T, far : T) : Mat4(T)
Source
ortho(left : T, right : T, bottom : T, top : T) : Mat4(T)
Source
perspective(fov_y : T, aspect_ratio : T, near : T, far : T) : Mat4(T)
Source
rotation(radians : T, axis : Vec3(T))
Source
scaling(scale : Vec3(T))
Source
translation(offset : Vec3(T))
Source

Instance methods

*(other : Mat4(T))
Source
[](i, j)
Source
[]=(i, j, value : T)
Source
data
Source
rotate(radians : T, axis : Vec3(T))
Source
scale(scale : Vec3(T))
Source
to_unsafe
Source
translate(offset : Vec3(T))
Source