struct Opal::Graphics::Mat4

Overview

4x4 Matrix for 3D affine transformations and rotations

Defined in:

opal/graphics/primitives_3d.cr

Constructors

Instance Method Summary

Constructor Detail

def self.identity : Mat4 #

[View source]
def self.new(vals : StaticArray(Float64, 16)) #

[View source]
def self.rotation_x(angle : Float64) : Mat4 #

[View source]
def self.rotation_y(angle : Float64) : Mat4 #

[View source]
def self.rotation_z(angle : Float64) : Mat4 #

[View source]

Instance Method Detail

def *(other : Mat4) : Mat4 #

[View source]
def m : StaticArray(Float64, 16) #

[View source]
def transform(v : Vec3) : Vec3 #

[View source]