class Game::Matrix

Defined in:

game/matrix.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(m0 : Float32 | Int32 = 1, m4 : Float32 | Int32 = 0, m8 : Float32 | Int32 = 0, m12 : Float32 | Int32 = 0, m1 : Float32 | Int32 = 0, m5 : Float32 | Int32 = 1, m9 : Float32 | Int32 = 0, m13 : Float32 | Int32 = 0, m2 : Float32 | Int32 = 0, m6 : Float32 | Int32 = 0, m10 : Float32 | Int32 = 1, m14 : Float32 | Int32 = 0, m3 : Float32 | Int32 = 0, m7 : Float32 | Int32 = 0, m11 : Float32 | Int32 = 0, m15 : Float32 | Int32 = 1) #

[View source]

Class Method Detail

def self.from_struct(m : LibRay::Matrix) #

[View source]
def self.identity #

[View source]

Instance Method Detail

def ==(m : Matrix) #

[View source]
def add(m : Matrix) : Matrix #

[View source]
def dot(v : Int32 | Float32) : Matrix #

[View source]
def dot(m : Matrix) #

[View source]
def dot(v : Vector4) : Vector4 #

[View source]
def identity? #

[View source]
def m0 : Int32 | Float32 #

[View source]
def m0=(m0 : Int32 | Float32) #

[View source]
def m1 : Int32 | Float32 #

[View source]
def m10 : Int32 | Float32 #

[View source]
def m10=(m10 : Int32 | Float32) #

[View source]
def m11 : Int32 | Float32 #

[View source]
def m11=(m11 : Int32 | Float32) #

[View source]
def m12 : Int32 | Float32 #

[View source]
def m12=(m12 : Int32 | Float32) #

[View source]
def m13 : Int32 | Float32 #

[View source]
def m13=(m13 : Int32 | Float32) #

[View source]
def m14 : Int32 | Float32 #

[View source]
def m14=(m14 : Int32 | Float32) #

[View source]
def m15 : Int32 | Float32 #

[View source]
def m15=(m15 : Int32 | Float32) #

[View source]
def m1=(m1 : Int32 | Float32) #

[View source]
def m2 : Int32 | Float32 #

[View source]
def m2=(m2 : Int32 | Float32) #

[View source]
def m3 : Int32 | Float32 #

[View source]
def m3=(m3 : Int32 | Float32) #

[View source]
def m4 : Int32 | Float32 #

[View source]
def m4=(m4 : Int32 | Float32) #

[View source]
def m5 : Int32 | Float32 #

[View source]
def m5=(m5 : Int32 | Float32) #

[View source]
def m6 : Int32 | Float32 #

[View source]
def m6=(m6 : Int32 | Float32) #

[View source]
def m7 : Int32 | Float32 #

[View source]
def m7=(m7 : Int32 | Float32) #

[View source]
def m8 : Int32 | Float32 #

[View source]
def m8=(m8 : Int32 | Float32) #

[View source]
def m9 : Int32 | Float32 #

[View source]
def m9=(m9 : Int32 | Float32) #

[View source]
def subtract(m : Matrix) : Matrix #

[View source]
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>

[View source]
def to_struct #

[View source]