class Prism::Maths::Matrix4f
- Prism::Maths::Matrix4f
- Reference
- Object
Defined in:
prism/maths/matrix4f.crConstructors
Instance Method Summary
- #*(other : Matrix4f)
-
#[](row : Int, column : Int)
Retrieves the element at the given row and column indexes.
- #[]=(row : Int, column : Int, value : Float32)
- #as_array
- #init_identity
- #init_orthographic(left : Float32, right : Float32, bottom : Float32, top : Float32, near : Float32, far : Float32) : Matrix4f
- #init_perspective(fov : Float32, aspect_ratio : Float32, z_near : Float32, z_far : Float32)
- #init_rotation(x : Float32, y : Float32, z : Float32)
- #init_rotation(forward : Vector3f, up : Vector3f, right : Vector3f)
- #init_rotation(forward : Vector3f, up : Vector3f)
- #init_scale(x : Float32, y : Float32, z : Float32)
-
#init_translation(x : Float32, y : Float32, z : Float32)
Turns the matrix into a translation matrix
- #m
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #transform(r : Vector3f) : Vector3f
Constructor Detail
Instance Method Detail
def init_orthographic(left : Float32, right : Float32, bottom : Float32, top : Float32, near : Float32, far : Float32) : Matrix4f
#
def init_perspective(fov : Float32, aspect_ratio : Float32, z_near : Float32, z_far : Float32)
#
def init_translation(x : Float32, y : Float32, z : Float32)
#
Turns the matrix into a translation matrix
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>