RayTracer::Matrix
Inherits RayTracer::Tuple < Reference < Object
Constants
IDENTITY_4 = identity(4)
Constructors
new(tuple : Tuple::TUPLE, column = true)
SourceClass methods
identity(size)
Sourcerotation_x(r)
Sourcerotation_y(r)
Sourcerotation_z(r)
Sourcescaling(x, y, z)
Sourceshearing(x_y, x_z, y_x, y_z, z_x, z_y)
Sourcetranslation(x, y, z)
Sourceview_transform(from : TUPLE, to : TUPLE, up : TUPLE)
SourceInstance methods
*(other : Matrix)
Source*(tuple : Tuple::TUPLE)
Source[](row, col)
Sourcecofactor(row, col)
Sourcecol(num)
Sourcecols
Sourcedet
Sourcedeterminant
Sourceinverse
Sourceinvertable?
Sourceminor(row, col)
Sourcerotation_x(r)
Sourcerotation_y(r)
Sourcerotation_z(r)
Sourcerow(num)
Sourcerows
Sourcescaling(x, y, z)
Sourceshearing(x_y, x_z, y_x, y_z, z_x, z_y)
Sourcesize
Sourcesubmatrix(row, col)
Sourceto_s(io : IO)
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>
transpose
Source