class VS

Defined in:

transformation.cr

Constructors

Instance Method Summary

Instance methods inherited from class Transformation

object_to_world(point : Point) : Point
object_to_world(point : Normal) : Normal
object_to_world(point : Vector) : Vector
object_to_world(ray : Ray)
object_to_world(point : AABB) : AABB
object_to_world
, rotate(axis : Vector, degrees : Float64) : Transformation rotate, scale(size : Float64) : Transformation scale, translate(offset : Vector) : Transformation translate, world_to_object(point : Point) : Point
world_to_object(point : Normal) : Normal
world_to_object(point : Vector) : Vector
world_to_object(ray : Ray)
world_to_object

Constructor Detail

def self.new(translation = Vector.new(0.0), scale = 1.0) #

TODO Make this code less messy


[View source]

Instance Method Detail

def object_to_world(point : Point) : Point #

[View source]
def object_to_world(point : Vector) : Vector #

[View source]
def object_to_world(n : Normal) : Normal #

[View source]
def object_to_world(box : AABB) #

[View source]
def rotate(axis : Vector, degrees : Float64) #

[View source]
def scale(size : Float64) #

[View source]
def translate(offset : Vector) #

[View source]
def world_to_object(point : Point) : Point #

[View source]
def world_to_object(point : Vector) : Vector #

[View source]
def world_to_object(n : Normal) : Normal #

[View source]