Spatial class

is a base class for object that need to be transformed, e.g. moved, scaled, rotated. It is also used as a Camera abstraction.

Inheritance
Implementers

Constructors

Spatial(String name)

Properties

debug bool
getter/setter pairinherited
enabled bool
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transform → Matrix4
final

Methods

addPos(double x, double y, double z) → void
addPosFromVec(Vector3 vector) → void
getBack() → Vector3
getEyePosition() → Vector3
getPos() → Vector3
getRight() → Vector3
getUp() → Vector3
getViewMatrix(Matrix4 m) → void
lookAt(Vector3 target, [Vector3? up]) → void
lookDown(double amount) → void
lookLeft(double amount) → void
lookRight(double amount) → void
lookUp(double amount) → void
moveBackward(double amount) → void
moveDown(double amount) → void
moveForward(double amount) → void
moveLeft(double amount) → void
moveRight(double amount) → void
moveUp(double amount) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollLeft(double amount) → void
rollRight(double amount) → void
rotX(double angle) → void
rotY(double angle) → void
rotZ(double angle) → void
setPos(double x, double y, double z) → void
setPosFromSpherical(double radius, double azimuth, double polar) → void
setPosFromVec(Vector3 vector) → void
toString() String
A string representation of this object.
inherited
translate(double x, double y, double z, [double factor = 1.0]) → void
translateFromVec(Vector3 vector, [double factor = 1.0]) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited