class VQS
- VQS
- Transformation
- Reference
- Object
Defined in:
transformation.crConstructors
-
.new(translation = Vector.new(0.0), scale = 1.0, axis = Vector.x, degrees = 0.0)
TODO Make this code less messy TODO: All quaternions are of unit length => conjugation could be simpler
Instance Method Summary
- #object_to_world(point : Point) : Point
- #object_to_world(point : Vector) : Vector
- #object_to_world(n : Normal) : Normal
- #object_to_world(box : AABB)
- #rotate(axis : Vector, degrees : Float64)
- #scale(size : Float64)
- #translate(offset : Vector)
- #world_to_object(point : Point) : Point
- #world_to_object(point : Vector) : Vector
- #world_to_object(n : Normal) : Normal
Instance methods inherited from class Transformation
object_to_world(point : Point) : Pointobject_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
TODO Make this code less messy
TODO All quaternions are of unit length => conjugation could be simpler