struct

CP::Mat2x2

Inherits Struct / Value / Object

2x2 matrix type used for tensors and such.

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

Constructors

new(a : Number, b : Number, c : Number, d : Number)
Source

Instance methods

a=(a : Float64)
Source
b=(b : Float64)
Source
c=(c : Float64)
Source
d=(d : Float64)
Source
transform(v : Vect) : Vect
Source