class PF3d::Transform

Defined in:

pf3d/transform.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(matrix : PF2d::Matrix(Float64, 16)) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.apply(point : PF2d::Vec3(Float64), matrix : PF2d::Matrix(Float64, 16)) #

[View source]
def self.identity #

[View source]
def self.point_at(position : PF2d::Vec3(Float64), target : PF2d::Vec3(Float64), up : PF2d::Vec3(Float64) = PF2d::Vec[0.0, 1.0, 0.0]) #

[View source]
def self.quick_inverse(other : PF2d::Matrix) #

Does not work for scaling, only for rotation / translation


[View source]
def self.rot_x(theta : Float64) #

[View source]
def self.rot_y(theta : Float64) #

[View source]
def self.rot_z(theta : Float64) #

[View source]
def self.rotate(r : PF2d::Vec3(Float64)) #

[View source]
def self.rotation(x : Float64, y : Float64, z : Float64) #

[View source]
def self.rotation(angle : PF2d::Vec3(Float64)) #

[View source]
def self.scale(scale : PF2d::Vec3(Float64)) #

[View source]
def self.translation(x : Float64, y : Float64, z : Float64) #

[View source]
def self.translation(pos : PF2d::Vec3(Float64)) #

[View source]

Instance Method Detail

def apply(point : PF2d::Vec3(Float64)) #

[View source]
def matrix : PF2d::Matrix(Float64, 16) #

[View source]
def matrix=(matrix : PF2d::Matrix(Float64, 16)) #

[View source]
def quick_invert #

Does not work for scaling, only for rotation / translation


[View source]
def reset #

[View source]
def rot_x(theta : Float64) #

[View source]
def rot_y(theta : Float64) #

[View source]
def rot_z(theta : Float64) #

[View source]
def translate(pos : PF2d::Vec3(Float64)) #

[View source]