struct CP::Mat2x2

Overview

2x2 matrix type used for tensors and such.

(row major: [[a b][c d]])

Defined in:

chipmunk/vector.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(a : Number, b : Number, c : Number, d : Number) #

[View source]

Instance Method Detail

def a : Float64 #

[View source]
def a=(a : Float64) #

[View source]
def b : Float64 #

[View source]
def b=(b : Float64) #

[View source]
def c : Float64 #

[View source]
def c=(c : Float64) #

[View source]
def d : Float64 #

[View source]
def d=(d : Float64) #

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

[View source]