B.Graph.Locator() -> B.Graph.NodeRepresents a locator (transformed location in 3D-space). To create the object use B.Graph.makeLocator(). METHODS:move(offset) Moves the locator by a given offset vector. move(ox, oy, oz) Moves the locator by given offsets. PARAMETERS:{number} ox offset along X-axis {number} oy offset along Y-axis {number} oz offset along Z-axis RETURNS:this FIRES:rotate(axis, angle) Rotates the locator around an arbitrary axis. PARAMETERS:RETURNS:this FIRES:rotate(object) Rotates the locator by a quaternion or canonized euler angles. scale(coeffs) Scales the locator by a given coefficient vector. scale(cx, cy, cz) Scales the locator by given coefficients. PARAMETERS:{number} cx scale along X-axis {number} cy scale along Y-axis {number} cz scale along Z-axis RETURNS:this FIRES:scale(c) Scales the locator uniformly by a given coefficient. PARAMETERS:{number} c scale along all axis uniformly RETURNS:this FIRES:transform(matrix) Add a given transformation to the locator transformation. transform() Gets the locator transformation. setTransform(matrix) Sets the locator transformation (overwrites the current). PARAMETERS:{B.Math.Matrix3 | B.Math.Matrix4} [matrix] = B.Math.Matrix4.IDENTITY RETURNS:this FIRES:finalTransform() Gets locator's final (world) transformation. RETURNS:position(result) Gets locator's world position. EVENTS:{B.Std.Event} transformed Reporting that the locator has been transformed. |
METHODS:EVENTS: |