Pj3d
Pj3dTransform

Transform methods that can be applied to Pj3d primitives and objects.

Usage:
object.transform.method

Returns:
Nothing

Example:
Pj3dBox box = new Pj3dBox(p, 20);
box.transform.translate(-50.0, 0.0, 0.0);

Download: Pj3dTransform.pde

Methods:
translate(float x, float y, float z);
Move the primitive to the given relative coordinates along the x, y, z axis

translateX(float x);
Move the primitive to the given relative coordinate along the x axis

translateY(float y);
Move the primitive to the given relative coordinate along the y axis

translateZ(float z);
Move the primitive to the given relative coordinate along the z axis

setPosition(float x, float y, float z);
Move the primitive to the given absolute coordinates along the x, y, z axis

setPositionX(float x);
Move the primitive to the given absolute coordinate along the x axis

setPositionY(float y);
Move the primitive to the given absolute coordinate along the y axis

setPositionZ(float z);
Move the primitive to the given absolute coordinate along the z axis

getPositionX();
Get the x position
returns: float

getPositionY();
Get the y position
returns: float

getPositionZ();
Get the z position
returns: float

setRotation(double x, double y, double z);
Rotate the primitive along the given values

setScale(float s);
Scales the x, y, z axis of the object equable.

setScale(float x, float y, float z);
Scales the x, y, z axis of the object to the given values.

<- back
Pj3dTransform