A B C D E F G H I K L M N O P Q R S T U V W X Y Z _ 
All Classes All Packages

A

add(float, float, float) - Method in class nub.primitives.Vector
 
add(Vector) - Method in class nub.primitives.Vector
Add a vector to this vector
add(Vector, Vector) - Static method in class nub.primitives.Vector
Add two vectors.
add(Vector, Vector, Vector) - Static method in class nub.primitives.Vector
Add two vectors into a target vector.
addBehavior(Node, BiConsumer<Graph, Node>) - Method in class nub.core.Graph
Adds a custom node behavior to be executed for this scene Graph.render() algorithm.
addBehavior(Node, Consumer<Node>) - Method in class nub.core.Graph
Same as setBehavior(node, (g, n) -> behavior.accept(n)).
addKeyFrame() - Method in class nub.core.Node
Adds a node copy as keyframe at 0 time if there are no currently keyframes in the path.
addKeyFrame(int, float) - Method in class nub.core.Node
Adds a node copy as a keyframe at time (in milliseconds) and a mask hint.
addKeyFrame(Node) - Method in class nub.core.Node
Adds node (as is) as a keyframe.
addKeyFrame(Node, float) - Method in class nub.core.Node
Adds node (as is) as a keyframe at the given time (in milliseconds).
align() - Method in class nub.core.Graph
Same as align((String)null).
align() - Method in class nub.core.Node
Same as align(null).
align(boolean) - Method in class nub.core.Node
Same as align(move, null).
align(boolean, float) - Method in class nub.core.Node
Same as align(move, threshold, null).
align(boolean, float, Node) - Method in class nub.core.Node
Aligns the node with node, so that two of their axis are parallel.
align(boolean, Node) - Method in class nub.core.Node
Convenience function that simply calls align(move, 0.85f, node).
align(float) - Method in class nub.core.Node
Same as align(threshold, null).
align(float, Node) - Method in class nub.core.Node
Convenience function that simply calls align(false, threshold, node).
align(String) - Method in class nub.core.Graph
Same as if (tag == null || node(tag) != null) align(node(tag)).
align(Node) - Method in class nub.core.Graph
Aligns the node (use null for the world) with the Graph.eye().
align(Node) - Method in class nub.core.Node
Convenience function that simply calls align(false, 0.85f, node)
angle() - Method in class nub.primitives.Quaternion
Returns the angle (in radians) of the rotation represented by the quaternion.
angle2D() - Method in class nub.primitives.Quaternion
Same as return axis().z() > 0 ? angle() : -angle().
angleBetween(Vector, Vector) - Static method in class nub.primitives.Vector
Calculate the angle between two vectors, using the dot product.
animate() - Method in class nub.core.Node
Run the animation defined by the node keyframes.
animate(float) - Method in class nub.core.Node
Run the animation with the given speed defined by the node keyframes.
animationRecurrence() - Method in class nub.core.Node
Tells whether or not the keyframes animation is recurrent or not.
animationTime() - Method in class nub.core.Node
Returns the current interpolation time (in milliseconds) along the keyframes path.
apply(Matrix) - Method in class nub.primitives.Matrix
Multiply this matrix by matrix.
applyMatrix(Matrix) - Method in class nub.core.MatrixHandler
Multiplies the current MatrixHandler.model() matrix by the one specified through the parameters.
applyProjection(Matrix) - Method in class nub.core.MatrixHandler
Multiplies the current MatrixHandler.projection() matrix by the one specified through the parameters.
applyTransformation(Node) - Method in class nub.core.MatrixHandler
Apply the local transformation defined by node, i.e., respect to its Node.reference().
applyWorldTransformation(Node) - Method in class nub.core.MatrixHandler
Similar to MatrixHandler.applyTransformation(Node), but applies the global transformation defined by the node.
aspectRatio() - Method in class nub.core.Graph
Returns the Graph.width() to Graph.height() aspect ratio of the display window.
at() - Method in class nub.core.Graph
2D eyes return the position.
attach() - Method in class nub.core.Node
Attaches the branch to which this node belongs to the tree so that this node (together with all nodes in the branch) is reached from the Graph.render() algorithm.
AXES - Static variable in class nub.core.Node
 
axis() - Method in class nub.primitives.Quaternion
Returns the normalized axis direction of the rotation represented by the quaternion.

B

ballVisibility(Vector, float) - Method in class nub.core.Graph
Returns Graph.Visibility.VISIBLE, Graph.Visibility.INVISIBLE, or Graph.Visibility.SEMIVISIBLE, depending whether the ball (of radius radius and center center) is visible, invisible, or semi-visible, respectively.
ballZFar() - Method in class nub.core.Graph
The far clipping plane is positioned at a distance equal to zClippingCoefficient() * radius() behind the Graph.center():
ballZNear() - Method in class nub.core.Graph
The clipping planes' positions depend on the Graph.radius() and Graph.center() rather than being fixed small-enough and large-enough values.
beginHUD() - Method in class nub.core.Graph
Begin Heads Up Display (HUD) so that drawing can be done using 2D screen coordinates.
beginHUD(int, int) - Method in class nub.core.MatrixHandler
Begins Heads Up Display (HUD).
bind(Matrix, Matrix) - Method in class nub.core.MatrixHandler
blueID(int) - Static method in class nub.core.Node
Convert int id to blue.
BONE - Static variable in class nub.core.Node
 
bounds() - Method in class nub.core.Graph
Returns the bounds plane equations.
BOUNDS - Static variable in class nub.core.Node
 
boxVisibility(Vector, Vector) - Method in class nub.core.Graph
Returns Graph.Visibility.VISIBLE, Graph.Visibility.INVISIBLE, or Graph.Visibility.SEMIVISIBLE, depending whether the axis aligned box (defined by corners p1 and p2) is visible, invisible, or semi-visible, respectively.
branch(Node) - Static method in class nub.core.Graph
Collects node and all its descendant nodes.
BULLSEYE - Static variable in class nub.core.Node
 
bullsEyeSize() - Method in class nub.core.Node
Returns the node Node.BULLSEYE Node.hint() size.
bypass() - Method in class nub.core.Node
Bypass rendering the node for the current frame.

C

cacheMagnitude - Variable in class nub.core.Node
 
cacheOrientation - Variable in class nub.core.Node
 
cachePosition - Variable in class nub.core.Node
 
cacheRotationParams - Variable in class nub.core.Node
 
cacheScalingParams - Variable in class nub.core.Node
 
cacheTargetMagnitude - Variable in class nub.core.Node
 
cacheTargetOrientation - Variable in class nub.core.Node
 
cacheTargetPosition - Variable in class nub.core.Node
 
cacheTargetRotation - Variable in class nub.core.Node
 
cacheTargetScaling - Variable in class nub.core.Node
 
cacheTargetTranslation - Variable in class nub.core.Node
 
cacheTranslationParams - Variable in class nub.core.Node
 
cad() - Method in class nub.processing.Scene
Same as super.rotateCAD(mouseRADX(), mouseRADY()).
cad(float) - Method in class nub.processing.Scene
Same as super.rotateCAD(mouseRADX(), mouseRADY(), new Vector(0, 1, 0), inertia).
cad(float, float) - Method in class nub.core.Graph
Same as rotateCAD(roll, pitch, new Vector(0, 1, 0), Graph.inertia).
cad(float, float, Vector) - Method in class nub.core.Graph
Same as rotateCAD(roll, pitch, upVector, Graph.inertia).
cad(float, float, Vector, float) - Method in class nub.core.Graph
Defines an axis which the eye rotates around.
cad(Vector) - Method in class nub.processing.Scene
Same as super.rotateCAD(mouseRADX(), mouseRADY(), up).
cad(Vector, float) - Method in class nub.processing.Scene
Same as super.rotateCAD(mouseRADX(), mouseRADY(), up, inertia).
CAMERA - Static variable in class nub.core.Node
 
castToFloat(Object) - Static method in class nub.core.Graph
Cast o to a Float.
castToInt(Object) - Static method in class nub.core.Graph
Cast o to an Integer.
center() - Method in class nub.core.Graph
Center of the ball (defined in world coordinates) used in eye motions interaction (e.g., Graph.shift(float, float, float), Graph.spin(int, int, int, int), Graph.turn(float, float, float)) and interpolation routines (e.g., Graph.fit()).
children() - Method in class nub.core.Node
Returns the list a child nodes of this node.
CIRCLE - nub.core.Node.BullsEyeShape
 
clearTags() - Method in class nub.core.Graph
Removes all tags so that Graph.node(String) returns null.
clearTree() - Static method in class nub.core.Graph
Same as for(Node node : _leadingNodes()) detach(node).
closeContext() - Method in class nub.core.Graph
Ends the rendering process (see Graph.render(Node)).
colorID() - Method in class nub.core.Node
Uniquely identifies the node.
colorID(int) - Static method in class nub.core.Node
Convert int id to color.
compose(Quaternion) - Method in class nub.primitives.Quaternion
Same as multiply(quaternion).
compose(Quaternion, Quaternion) - Static method in class nub.primitives.Quaternion
Same as return multiply(a, b).
configHint(int, Object...) - Method in class nub.core.Node
Configures the hint using varargs as follows:
conjugate() - Method in class nub.primitives.Quaternion
Sets this as its conjugate.
conjugate(Quaternion) - Method in class nub.primitives.Quaternion
Sets this as the quaternion conjugate.
context() - Method in class nub.core.Graph
Returns the main renderer context.
context() - Method in class nub.processing.Scene
Returns the PGraphics instance this scene is related to.
copy() - Method in class nub.core.Node
Same as return copy(true).
copy() - Method in class nub.primitives.Matrix
Returns a copy of this matrix.
copy() - Method in class nub.primitives.Quaternion
Returns a deep copy of this quaternion.
copy() - Method in class nub.primitives.Vector
Returns a deep copy of this vector.
copy(boolean) - Method in class nub.core.Node
Performs a deep copy of this node, and its descendants iff recursive is true.
cross(Vector) - Method in class nub.primitives.Vector
Return a vector composed of the cross product between this and another.
cross(Vector, Vector) - Method in class nub.primitives.Vector
Perform cross product between this and another vector, and store the result in 'target'.
cross(Vector, Vector, Vector) - Static method in class nub.primitives.Vector
Cross product: target = vector1 * vector2.
cull - Variable in class nub.core.Node
 
CUSTOM - nub.core.Graph.Type
 

D

detach() - Method in class nub.core.Node
Detach node from the tree so that it's not reached from the Graph.render() algorithm and make all the nodes in the node branch eligible for garbage collection.
determinant() - Method in class nub.primitives.Matrix
 
disableDepthTest() - Method in class nub.processing.Scene
Disables z-buffer on Scene.context().
disableDepthTest(PGraphics) - Static method in class nub.processing.Scene
Disables z-buffer on pGraphics.
disableHint(int) - Method in class nub.core.Node
Disables all the single visual hints encoded in the bitwise-or hint mask.
disablePicking(int) - Method in class nub.core.Node
Disables all the single visual hints encoded in the bitwise-or hint mask.
disableTagging(Node) - Method in class nub.core.Graph
Disables tagging the node.
displacement(float) - Method in class nub.core.Node
Converts scalar displacement from world to this node.
displacement(float, Node) - Method in class nub.core.Node
Converts scalar displacement from node to this node.
displacement(Quaternion) - Method in class nub.core.Node
Converts quaternion displacement from world to this node.
displacement(Quaternion, Node) - Method in class nub.core.Node
Converts quaternion displacement from node to this node.
displacement(Vector) - Method in class nub.core.Graph
Same as return displacement(vector, null).
displacement(Vector) - Method in class nub.core.Node
Converts vector displacement from world to this node.
displacement(Vector, Node) - Method in class nub.core.Graph
Converts vector displacement given in screen space to the node coordinate system.
displacement(Vector, Node) - Method in class nub.core.Node
Converts vector displacement from node to this node.
display() - Method in class nub.processing.Scene
Same as display(null, false, false, null, null, 0, 0).
display(boolean) - Method in class nub.processing.Scene
Same as display(null, axes, null, null, null, 0, 0).
display(boolean, int, int) - Method in class nub.processing.Scene
Same as display(null, axes, null, null, null, x, y).
display(boolean, Integer) - Method in class nub.processing.Scene
Same as display(null, axes, grid, null, null, 0, 0).
display(boolean, Integer, int, int) - Method in class nub.processing.Scene
Same as display(null, axes, grid, null, null, x, y).
display(boolean, Integer, Node) - Method in class nub.processing.Scene
Same as display(axes, grid, subtree, null, 0, 0).
display(boolean, Integer, Node, int, int) - Method in class nub.processing.Scene
Same as display(null, axes, grid, subtree, null, x, y).
display(boolean, Integer, Node, Scene.Callback) - Method in class nub.processing.Scene
Same as display(null, axes, grid, subtree, worldCallback, 0, 0).
display(boolean, Integer, Scene.Callback) - Method in class nub.processing.Scene
Same as display(null, axes, grid, null, worldCallback, 0, 0).
display(boolean, Integer, Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(background, axes, grid, null, worldCallback, x, y).
display(boolean, Node) - Method in class nub.processing.Scene
Same as display(null, axes, null, subtree, null, 0, 0).
display(boolean, Node, int, int) - Method in class nub.processing.Scene
Same as display(null, axes, null, subtree, null, x, y).
display(boolean, Node, Scene.Callback) - Method in class nub.processing.Scene
Same as display(null, axes, null, subtree, worldCallback, 0, 0).
display(boolean, Node, Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(null, axes, subtree, worldCallback, cornerX, cornerY).
display(int, int) - Method in class nub.processing.Scene
Same as display(null, false, false, null, null, x, y).
display(Object) - Method in class nub.processing.Scene
Same as display(background, false, false, null, null, 0, 0).
display(Object, boolean) - Method in class nub.processing.Scene
Same as display(background, axes, null, null, null, 0, 0).
display(Object, boolean, int, int) - Method in class nub.processing.Scene
Same as display(background, axes, null, null, null, x, y).
display(Object, boolean, Integer) - Method in class nub.processing.Scene
Same as display(background, axes, grid, null, null, 0, 0).
display(Object, boolean, Integer, int, int) - Method in class nub.processing.Scene
Same as display(background, axes, grid, null, null, x, y).
display(Object, boolean, Integer, Node) - Method in class nub.processing.Scene
Same as display(background, axes, grid, subtree, null, 0, 0).
display(Object, boolean, Integer, Node, int, int) - Method in class nub.processing.Scene
Same as display(background, axes, grid, subtree, null, x, y).
display(Object, boolean, Integer, Node, Scene.Callback) - Method in class nub.processing.Scene
Same as display(background, axes, grid, subtree, worldCallback, 0, 0).
display(Object, boolean, Integer, Node, Scene.Callback, int, int) - Method in class nub.processing.Scene
Display the scene tree.
display(Object, boolean, Integer, Scene.Callback) - Method in class nub.processing.Scene
Same as display(background, axes, grid, null, worldCallback, 0, 0).
display(Object, boolean, Integer, Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(background, axes, grid, null, worldCallback, x, y).
display(Object, boolean, Node) - Method in class nub.processing.Scene
Same as display(background, axes, null, subtree, null, 0, 0).
display(Object, boolean, Node, int, int) - Method in class nub.processing.Scene
Same as display(background, axes, null, subtree, null, x, y).
display(Object, boolean, Node, Scene.Callback) - Method in class nub.processing.Scene
Same as display(background, axes, null, subtree, worldCallback, 0, 0).
display(Object, boolean, Node, Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(background, axes, null, subtree, worldCallback, cornerX, cornerY).
display(Object, int, int) - Method in class nub.processing.Scene
Same as display(background, false, false, null, null, x, y).
display(Object, Node) - Method in class nub.processing.Scene
Same as display(background, false, null, subtree, null, 0, 0).
display(Object, Node, int, int) - Method in class nub.processing.Scene
Same as display(background, false, null, null, subtree, x, y).
display(Object, Node, Scene.Callback) - Method in class nub.processing.Scene
Same as display(background, false, null, subtree, worldCallback, 0, 0).
display(Object, Node, Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(background, false, null, subtree, worldCallback, x, y).
display(Object, Scene.Callback) - Method in class nub.processing.Scene
Same as display(background, false, false, null, worldCallback, 0, 0).
display(Object, Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(background, false, false, null, worldCallback, x, y).
display(Node) - Method in class nub.processing.Scene
Same as display(null, false, null, subtree, null, 0, 0).
display(Node, int, int) - Method in class nub.processing.Scene
Same as display(null, false, null, null, subtree, x, y).
display(Node, Scene.Callback) - Method in class nub.processing.Scene
Same as display(null, false, null, subtree, worldCallback, 0, 0).
display(Node, Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(null, false, null, subtree, worldCallback, x, y).
display(Scene.Callback) - Method in class nub.processing.Scene
Same as display(null, false, false, null, worldCallback, 0, 0).
display(Scene.Callback, int, int) - Method in class nub.processing.Scene
Same as display(null, false, false, null, worldCallback, x, y).
displayBackBuffer() - Method in class nub.processing.Scene
Same as displayBackBuffer(0, 0).
displayBackBuffer(int) - Method in class nub.processing.Scene
Same as displayBackBuffer(background, 0, 0).
displayBackBuffer(int, int) - Method in class nub.processing.Scene
Displays the buffer nub use for picking at the given pixel coordinates.
displayBackBuffer(int, int, int) - Method in class nub.processing.Scene
Displays the buffer nub use for picking at the given pixel coordinates, with background color.
dispose() - Method in class nub.processing.Scene
distance(Vector) - Method in class nub.primitives.Vector
Calculate the Euclidean distance between two points (considering a point as a vector object).
distance(Vector, Vector) - Static method in class nub.primitives.Vector
Calculate the Euclidean distance between two points (considering a point as a vector object).
distanceToBound(int, Vector) - Method in class nub.core.Graph
Returns the signed distance between point position and plane index in world units.
divide(float) - Method in class nub.primitives.Vector
Divide this vector by a scalar.
divide(Vector, float) - Static method in class nub.primitives.Vector
Divide a vector by a scalar and return the result in a new vector.
divide(Vector, float, Vector) - Static method in class nub.primitives.Vector
Divide a vector by a scalar and store the result in another vector.
dot(float, float, float) - Method in class nub.primitives.Vector
 
dot(Quaternion, Quaternion) - Static method in class nub.primitives.Quaternion
Returns the "dot" product of a and b:
dot(Vector) - Method in class nub.primitives.Vector
Calculate the dot product with another vector.
dot(Vector, Vector) - Static method in class nub.primitives.Vector
 
dotProduct(Quaternion) - Method in class nub.primitives.Quaternion
Returns the "dot" product of this quaternion and quaternion:
draw() - Method in class nub.core.Graph
Paint method which is called just after your main event loop.
drawArc(PGraphics, float, float, float, int) - Method in class nub.processing.Scene
Draws an Arc onto pGraphics centered at (0,0) on the XY Plane minAngle and maxAngle represents the Arc's width.
drawArrow(float) - Method in class nub.processing.Scene
Simply calls drawArrow(length, 0.05f * length)
drawArrow(float, float) - Method in class nub.processing.Scene
Draws an arrow of radius and length along the positive Z axis.
drawArrow(Vector) - Method in class nub.processing.Scene
Same as drawArrow(vector, 0.05f * vector.magnitude()).
drawArrow(Vector, float) - Method in class nub.processing.Scene
Same as drawArrow(new Vector(), vector, radius).
drawArrow(Vector, Vector, float) - Method in class nub.processing.Scene
Draws an arrow of radius between from and the 3D point to.
drawAxes() - Method in class nub.processing.Scene
Convenience function that simply calls drawAxes(radius()).
drawAxes(float) - Method in class nub.processing.Scene
Same as drawAxes(context(), length, isLeftHanded()).
drawAxes(PGraphics) - Method in class nub.processing.Scene
Same as drawAxes(pGraphics, radius(), isLeftHanded()).
drawAxes(PGraphics, float) - Static method in class nub.processing.Scene
Draws axes of length onto pGraphics.
drawCircledBullsEye(float, float) - Method in class nub.processing.Scene
Same as drawCircledBullsEye(x, y, radius() / 5).
drawCircledBullsEye(float, float, float) - Method in class nub.processing.Scene
Draws a circled bullseye onto Scene.context(), centered at (x, y), having length pixels.
drawCone(float, float) - Method in class nub.processing.Scene
Same as drawCone(12, 0, 0, radius, height)
drawCone(float, float, float) - Method in class nub.processing.Scene
Same as drawCone(18, 0, 0, radius1, radius2, height).
drawCone(int, float, float) - Method in class nub.processing.Scene
Same as drawCone(detail, 0, 0, radius, height)
drawCone(int, float, float, float) - Method in class nub.processing.Scene
Same as drawCone(detail, 0, 0, radius1, radius2, height).
drawCone(int, float, float, float, float) - Method in class nub.processing.Scene
Same as drawCone(context(), detail, x, y, radius, height).
drawCone(int, float, float, float, float, float) - Method in class nub.processing.Scene
Same as drawCone(context(), detail, x, y, radius1, radius2, height).
drawCone(PGraphics) - Method in class nub.processing.Scene
Same as drawCone(pGraphics, 12, 0, 0, radius()/4, sqrt(3) * radius()/4).
drawCone(PGraphics, float, float) - Static method in class nub.processing.Scene
Same as drawCone(pGraphics, 12, 0, 0, radius, height).
drawCone(PGraphics, float, float, float) - Static method in class nub.processing.Scene
Same as drawCone(pGraphics, 18, 0, 0, radius1, radius2, height).
drawCone(PGraphics, float, float, float, int) - Method in class nub.processing.Scene
Draws a cone onto pGraphics centered at (0,0) having Semi-axis a and b and height dimensions.
drawCone(PGraphics, float, List<Vector>) - Method in class nub.processing.Scene
Draws a cone onto pGraphics centered at (0,0) where vertices represents a polygon on XY Plane and with height as height.
drawCone(PGraphics, int, float, float) - Static method in class nub.processing.Scene
Same as drawCone(pGraphics, detail, 0, 0, radius, height).
drawCone(PGraphics, int, float, float, float) - Static method in class nub.processing.Scene
Same as drawCone(pGraphics, detail, 0, 0, radius1, radius2, height).
drawCone(PGraphics, int, float, float, float, float) - Static method in class nub.processing.Scene
Draws a cone onto pGraphics centered at (x,y) having radius and height dimensions.
drawCone(PGraphics, int, float, float, float, float, float) - Static method in class nub.processing.Scene
Draws a truncated cone onto pGraphics along the positive z axis, with its base centered at (x,y), height, and radii radius1 and radius2 (basis and height respectively).
drawCone(PGraphics, List<Vector>, float) - Method in class nub.processing.Scene
Draws a cone onto pGraphics centered at (0,0,0) where vertices represents the base of the Polygon and with scale as maximum height.
drawCross(float, float) - Method in class nub.processing.Scene
Convenience function that simply calls drawCross(x, y, radius()/5).
drawCross(float, float, float) - Method in class nub.processing.Scene
Draws a cross on the screen centered under pixel (x, y), and edge of size length onto Scene.context().
drawCross(Node) - Method in class nub.processing.Scene
Scene.drawCross(float, float, float) centered at the projected node origin.
drawCross(Node, float) - Method in class nub.processing.Scene
Scene.drawCross(float, float, float) centered at the projected node origin, having length pixels.
drawCylinder(float, float) - Method in class nub.processing.Scene
Same as drawCylinder(20, radius, height).
drawCylinder(int, float, float) - Method in class nub.processing.Scene
Same as drawCylinder(context(), detail, radius, height).
drawCylinder(PGraphics) - Method in class nub.processing.Scene
Same as drawCylinder(context, radius()/6, radius()/3).
drawCylinder(PGraphics, float, float) - Static method in class nub.processing.Scene
Same as drawCylinder(pGraphics, 20, radius, height).
drawCylinder(PGraphics, int, float, float) - Static method in class nub.processing.Scene
Draws a cylinder of radius and height onto pGraphics.
drawDottedGrid() - Method in class nub.processing.Scene
Convenience function that simply calls drawDottedGrid(radius(), 10).
drawDottedGrid(float) - Method in class nub.processing.Scene
Convenience function that simply calls drawDottedGrid(size, 10).
drawDottedGrid(float, int) - Method in class nub.processing.Scene
Same as drawDottedGrid(context(), size, subdivisions).
drawDottedGrid(int) - Method in class nub.processing.Scene
Convenience function that simplt calls drawDottedGrid(radius(), subdivisions).
drawDottedGrid(PGraphics) - Method in class nub.processing.Scene
Same as drawDottedGrid(pGraphics, radius(), 10).
drawDottedGrid(PGraphics, float, int) - Static method in class nub.processing.Scene
Draws a dotted-grid of size onto pGraphics in the XY plane, centered on (0,0,0), having subdivisions.
drawFrustum(Graph) - Method in class nub.processing.Scene
Applies the graph.eye() transformation and then calls Scene.drawFrustum(PGraphics, Graph) on the scene Scene.context().
drawFrustum(PGraphics, Graph) - Static method in class nub.processing.Scene
Draws a representation of the viewing frustum onto pGraphics according to graph.eye() and graph._type.
drawFrustum(PGraphics, PGraphics, Node, Graph.Type, float, float) - Static method in class nub.processing.Scene
Draws a representation of the eyeBuffer frustum onto pGraphics according to frustum parameters: type, eye Node.worldMagnitude(), zNear and zFar, while taking into account whether or not the scene is leftHanded.
drawGrid() - Method in class nub.processing.Scene
Convenience function that simply calls drawGrid(radius(), 10)
drawGrid(float) - Method in class nub.processing.Scene
Convenience function that simply calls drawGrid(size, 10)
drawGrid(float, int) - Method in class nub.processing.Scene
Same as drawGrid(context(), size, subdivisions).
drawGrid(int) - Method in class nub.processing.Scene
Convenience function that simply calls drawGrid(radius(), subdivisions)
drawGrid(PGraphics) - Method in class nub.processing.Scene
Same as drawGrid(pGraphics, radius(), 10).
drawGrid(PGraphics, float, int) - Static method in class nub.processing.Scene
Draws a grid of size onto pGraphics in the XY plane, centered on (0,0,0), having subdivisions.
drawHollowCylinder(float, float, Vector, Vector) - Method in class nub.processing.Scene
Same as drawHollowCylinder(context(), radius, height, normal1, normal2).
drawHollowCylinder(int, float, float, Vector, Vector) - Method in class nub.processing.Scene
Same as drawHollowCylinder(context(), detail, radius, height, normal1, normal2).
drawHollowCylinder(PGraphics, float, float, Vector, Vector) - Static method in class nub.processing.Scene
Same as drawHollowCylinder(pGraphics, 30, radius, height, normal1, normal2).
drawHollowCylinder(PGraphics, int, float, float, Vector, Vector) - Static method in class nub.processing.Scene
Draws a hollow cylinder onto pGraphics whose bases are formed by two cutting planes (normal1 and normal2), along the positive z axis.
drawProjector(Graph, Vector) - Method in class nub.processing.Scene
Same as drawProjectors(eye, Arrays.asList(point)).
drawProjectors(Graph, List<Vector>) - Method in class nub.processing.Scene
Draws the projection of each point in points in the near plane onto pGraphics.
drawSquaredBullsEye(float, float) - Method in class nub.processing.Scene
Same as drawSquaredBullsEye(x, y, radius() / 5).
drawSquaredBullsEye(float, float, float) - Method in class nub.processing.Scene
Draws a squared bullseye onto Scene.context(), centered at (x, y), having length pixels.
drawTorusSolenoid() - Method in class nub.processing.Scene
Convenience function that simply calls drawTorusSolenoid(6).
drawTorusSolenoid(float) - Method in class nub.processing.Scene
Convenience function that simply calls drawTorusSolenoid(6, insideRadius).
drawTorusSolenoid(int) - Method in class nub.processing.Scene
Convenience function that simply calls drawTorusSolenoid(faces, 0.07f * radius()).
drawTorusSolenoid(int, float) - Method in class nub.processing.Scene
Convenience function that simply calls drawTorusSolenoid(faces, 100, insideRadius, insideRadius * 1.3f).
drawTorusSolenoid(int, int, float, float) - Method in class nub.processing.Scene
Same as drawTorusSolenoid(context(), faces, detail, insideRadius, outsideRadius).
drawTorusSolenoid(PGraphics) - Static method in class nub.processing.Scene
Same as drawTorusSolenoid(pGraphics, 6).
drawTorusSolenoid(PGraphics, float) - Static method in class nub.processing.Scene
Same as drawTorusSolenoid(pGraphics, 6, insideRadius).
drawTorusSolenoid(PGraphics, int, float) - Static method in class nub.processing.Scene
Same as drawTorusSolenoid(pGraphics, faces, 100, insideRadius, insideRadius * 1.3f).
drawTorusSolenoid(PGraphics, int, int, float, float) - Static method in class nub.processing.Scene
Draws a torus solenoid onto pGraphics.

E

enableDepthTest() - Method in class nub.processing.Scene
Enables z-buffer on Scene.context().
enableDepthTest(PGraphics) - Static method in class nub.processing.Scene
Enables z-buffer on pGraphics.
enableHint(int) - Method in class nub.core.Node
Enables all single visual hints encoded in the bitwise-or hint mask.
enableHint(int, Object...) - Method in class nub.core.Node
enablePicking(int) - Method in class nub.core.Node
Enables all single visual hints encoded in the bitwise-or pickingMode mask.
endHUD() - Method in class nub.core.Graph
Ends Heads Up Display (HUD).
endHUD() - Method in class nub.core.MatrixHandler
Ends Heads Up Display (HUD).
ERROR_PUSHMATRIX_OVERFLOW - Static variable in class nub.core.MatrixHandler
 
ERROR_PUSHMATRIX_UNDERFLOW - Static variable in class nub.core.MatrixHandler
 
eulerAngles() - Method in class nub.primitives.Quaternion
Converts this quaternion to Euler rotation angles roll, pitch and yaw in radians.
execute() - Method in interface nub.processing.Scene.Callback
 
exp() - Method in class nub.primitives.Quaternion
Returns the quaternion exponential.
eye() - Method in class nub.core.Graph
Returns the associated eye.

F

FILTER - Static variable in class nub.core.Node
 
fit() - Method in class nub.core.Graph
Moves the eye so that the ball defined by Graph.center() and Graph.radius() is visible and fits the window.
fit(float) - Method in class nub.core.Graph
Moves the eye during duration milliseconds so that the ball defined by Graph.center() and Graph.radius() is visible and fits the window.
fit(int, int, int, int) - Method in class nub.core.Graph
Moves the eye so that the rectangular screen region defined by x, y, width, height (pixel units, with origin in the upper left corner) fits the screen.
fit(int, int, int, int, float) - Method in class nub.core.Graph
Smoothly moves the eye during duration milliseconds so that the rectangular screen region defined by rectangle (pixel units, with origin in the upper left corner) fits the screen.
fit(Node) - Method in class nub.core.Graph
Convenience function that simply calls fit(node, 0).
fit(Node, float) - Method in class nub.core.Graph
Smoothly interpolates the eye on a interpolator path so that it goes to node.
fit(Vector, Vector) - Method in class nub.core.Graph
Moves the eye so that the world axis aligned box defined by corner1 and corner2 is entirely visible.
fit(Vector, Vector, float) - Method in class nub.core.Graph
Smoothly moves the eye during duration milliseconds so that the world axis aligned box defined by corner1 and corner2 is entirely visible.
fitFOV() - Method in class nub.core.Graph
Changes the Graph.eye() Graph.fov() so that the entire scene (defined by Graph.center() and Graph.radius()) is visible.
fitFOV(float) - Method in class nub.core.Graph
Rescales the Graph.fov() duration milliseconds so that the ball defined by center and radius is visible and fits the window.
focus() - Method in class nub.core.Graph
Same as focus((String)null).
focus(String) - Method in class nub.core.Graph
Same as if (tag == null || node(tag) != null) focus(node(tag)).
focus(Node) - Method in class nub.core.Graph
Focuses the node (use null for the world) with the Graph.eye().
forbidRotationFilter - Static variable in class nub.core.Node
Filters rotation so that it gets nullified.
forbidScalingFilter - Static variable in class nub.core.Node
Filters scaling so that it gets nullified.
forbidTranslationFilter - Static variable in class nub.core.Node
Filters translation so that it gets nullified.
fov() - Method in class nub.core.Graph
Retrieves the scene field-of-view in radians.
from(Object...) - Static method in class nub.primitives.Quaternion
Converts various orientation representations to quaternion form and returns it.
fromAngle(float) - Static method in class nub.primitives.Vector
Make a new 2D unit vector from an angle.
fromAngle(float, Vector) - Static method in class nub.primitives.Vector
Make a new 2D unit vector from an angle.
fromAxisAngle(Vector, float) - Method in class nub.primitives.Quaternion
Sets the quaternion as a rotation of axis and angle (in radians).
fromEulerAngles(float, float, float) - Method in class nub.primitives.Quaternion
Converts Euler rotation angles roll, pitch and yaw, respectively defined to the x, y and z axes, to this quaternion.
fromMatrix(Matrix) - Method in class nub.core.Node
Sets the node from a Node.matrix() representation: orientation and magnitude in the upper left 3x3 matrix and position on the last column.
fromMatrix(Matrix) - Method in class nub.primitives.Quaternion
Set the quaternion from a (supposedly correct) 3x3 rotation matrix given in the upper left 3x3 sub-matrix of the Matrix.
fromRotatedBasis(Vector, Vector, Vector) - Method in class nub.primitives.Quaternion
Sets the quaternion from the three rotated vectors of an orthogonal basis.
fromTo(Vector, Vector) - Method in class nub.primitives.Quaternion
Sets the quaternion as a rotation from the from direction to the to direction.
fromWorldMatrix(Matrix) - Method in class nub.core.Node
Sets the node from Node.worldMatrix() representation: orientation and magnitude in the upper left 3x3 matrix and position on the last column.

G

get(float[]) - Method in class nub.primitives.Matrix
Same as return get(target, true).
get(float[]) - Method in class nub.primitives.Quaternion
Returns a copy of this quaternion into the four length target array.
get(float[]) - Method in class nub.primitives.Vector
Returns this vector as an array.
get(float[], boolean) - Method in class nub.primitives.Matrix
Copies the matrix contents into a 16 entry target float array.
Graph - Class in nub.core
A 2D or 3D scene-graph providing a (default) Graph.eye() node, input and timing handling to a raster or ray-tracing renderer.
Graph(Object, int, int) - Constructor for class nub.core.Graph
Same as this(context, width, height, Type.PERSPECTIVE).
Graph(Object, int, int, Node) - Constructor for class nub.core.Graph
Same as this(context, width, height, eye, Type.PERSPECTIVE).
Graph.Type - Enum in nub.core
Enumerates the graph types.
Graph.Visibility - Enum in nub.core
Enumerates the different visibility states an object may have respect to the bounding volume.
greenID(int) - Static method in class nub.core.Node
Convert int id to green.

H

hasFocus() - Method in class nub.processing.Scene
Same as return hasFocus(pApplet.mouseX, pApplet.mouseY).
hasFocus(int, int) - Method in class nub.core.Graph
Returns whether or not the scene has focus or not under the given pixel.
hasTag(String, Node) - Method in class nub.core.Graph
Returns true if node(tag) (see Graph.node(String)) returns node and false otherwise.
hasTag(Node) - Method in class nub.core.Graph
Same as return hasTag(null, node).
heading() - Method in class nub.primitives.Vector
Calculate the angle of rotation for this vector (only 2D vectors).
height() - Method in class nub.core.Graph
Returns height of the screen window.
hfov() - Method in class nub.core.Graph
Same as return type() == Type.PERSPECTIVE ? radians(eye().magnitude() * aspectRatio()) : eye().magnitude().
highlight() - Method in class nub.core.Node
Returns the highlighting magnitude use to scale the node when it's tagged.
hint() - Method in class nub.core.Node
Returns the current visual hint mask.
HUD - Static variable in class nub.core.Node
 
hudProjection(int, int) - Static method in class nub.primitives.Matrix
Returns a hud (heads-up-display) projection matrix according to the window width and height dimensions.
hudView(int, int) - Static method in class nub.primitives.Matrix
Returns a hud (heads-up-display) view according to the window width and height dimensions.

I

id() - Method in class nub.core.Node
Returns the unique sequential node id assigned at instantiation time.
identity - Static variable in class nub.primitives.Quaternion
Returns a quaternion whose components are set to (0, 0, 0, 1).
image() - Method in class nub.processing.Scene
Same as image(0, 0).
image(int, int) - Method in class nub.processing.Scene
Similar to Scene.pApplet image().
inertia - Static variable in class nub.core.Graph
 
interact(Object...) - Method in class nub.core.Graph
Same as interact((String)null, gesture).
interact(Object[]) - Method in class nub.core.Node
Parse gesture params.
interact(String, Object...) - Method in class nub.core.Graph
Same as if (tag == null || node(tag) != null) interact(node(tag), gesture).
interact(Node, Object...) - Method in class nub.core.Graph
Call the node (or the Graph.eye() if node is null) interact gesture parser function set either with Node.setInteraction(Consumer) or Node.setInteraction(BiConsumer).
interpolate(float) - Method in class nub.core.Node
Interpolate the node at the given time (in milliseconds) along the keyframes path.
inverse() - Method in class nub.core.Node
 
inverse() - Method in class nub.primitives.Quaternion
Returns the inverse quaternion (inverse rotation).
inverse(boolean) - Method in class nub.core.Node
Returns a node representing the inverse of this node space transformation.
inverse(Matrix) - Static method in class nub.primitives.Matrix
Returns the inverse of matrix.
inverseMatrix() - Method in class nub.primitives.Quaternion
Returns the associated inverse rotation matrix.
inverseRotate(Vector) - Method in class nub.primitives.Quaternion
Returns the image of vector by the quaternion Quaternion.inverse() rotation.
invert() - Method in class nub.primitives.Matrix
Invert this matrix.
invert() - Method in class nub.primitives.Quaternion
Sets the value of this to the inverse of itself.
invert(Matrix) - Method in class nub.primitives.Matrix
Invert this matrix into matrix, i.e., doesn't modify this matrix.
invert(Quaternion) - Method in class nub.primitives.Quaternion
Sets the value of this to the Quaternion inverse of quaternion.
INVISIBLE - nub.core.Graph.Visibility
 
is2D() - Method in class nub.core.Graph
 
is3D() - Method in class nub.core.Graph
 
isAncestor(Node) - Method in class nub.core.Node
Returns true if node is ancestor of this node.
isAncestor(Node, Node) - Static method in class nub.core.Node
Same as return successor.isAncestor(ancestor).
isAttached() - Method in class nub.core.Node
Returns whether or not the node is reachable by the rendering algorithm.
isConeBackFacing(Vector, ArrayList<Vector>) - Method in class nub.core.Graph
Returns true if the given cone is back-facing the eye and false otherwise.
isConeBackFacing(Vector, Vector[]) - Method in class nub.core.Graph
Returns true if the given cone is back-facing the eye and false otherwise.
isConeBackFacing(Vector, Vector, float) - Method in class nub.core.Graph
Returns true if the given cone is back-facing the eye and false otherwise.
isConeFrontFacing(Vector, ArrayList<Vector>) - Method in class nub.core.Graph
Same as return !isConeBackFacing(vertex, normals).
isConeFrontFacing(Vector, Vector[]) - Method in class nub.core.Graph
Same as !isConeBackFacing(vertex, normals).
isConeFrontFacing(Vector, Vector, float) - Method in class nub.core.Graph
Same as return !isConeBackFacing(vertex, axis, angle).
isEye() - Method in class nub.core.Node
Returns whether or not this node is some graph Graph.eye().
isEye(Graph) - Method in class nub.core.Node
Returns whether or not this node is the given graph Graph.eye().
isEye(Node) - Method in class nub.core.Graph
Checks whether or not the given node is the Graph.eye().
isFaceBackFacing(Vector, Vector) - Method in class nub.core.Graph
Returns true if the given face is back-facing the camera.
isFaceBackFacing(Vector, Vector, Vector) - Method in class nub.core.Graph
Returns true if the given face is back-facing the eye.
isFaceFrontFacing(Vector, Vector) - Method in class nub.core.Graph
Same as return !isFaceBackFacing(vertex, normal).
isFaceFrontFacing(Vector, Vector, Vector) - Method in class nub.core.Graph
Same as return !isFaceBackFacing(a, b, c).
isHintEnabled(int) - Method in class nub.core.Node
Returns whether or not all single visual hints encoded in the bitwise-or hint mask are enable or not.
isNumInstance(Object) - Static method in class nub.core.Graph
Returns true if o is instance of Integer, Float or Double, and false otherwise.
isOffscreen() - Method in class nub.core.Graph
Returns true if this scene is off-screen and false otherwise.
isPickingEnabled(int) - Method in class nub.core.Node
Returns whether or not all hints encoded in the bitwise-or hint mask are enable for node picking with ray casting.
isPointVisible(float, float, float) - Method in class nub.core.Graph
Same as return isPointVisible(new Vector(x, y, z)).
isPointVisible(Vector) - Method in class nub.core.Graph
Returns true if point is visible (i.e, lies within the eye bounds) and false otherwise.
isReference(Node) - Method in class nub.core.Node
Returns true if node is Node.reference() this node.
isTagged(Graph) - Method in class nub.core.Node
Returns true if the node has been tagged by the graph at least once and false otherwise.
isTagged(Node) - Method in class nub.core.Graph
Returns true if the node is currently being tagged and false otherwise.
isTagValid() - Method in class nub.core.Graph
Same as isTagValid(null).
isTagValid(String) - Method in class nub.core.Graph
Returns true if some node is tagged with tag (which may be {code null}) and false otherwise.

K

KEYFRAMES - Static variable in class nub.core.Node
 

L

lastUpdate() - Method in class nub.core.Graph
lastUpdate() - Method in class nub.core.Node
 
leftHanded - Static variable in class nub.core.Graph
 
lerp(float, float, float) - Static method in class nub.primitives.Vector
Calculates a number between two numbers at a specific increment.
lerp(float, float, float, float) - Method in class nub.primitives.Vector
Linear interpolate the vector to x,y,z values.
lerp(Vector, float) - Method in class nub.primitives.Vector
Linear interpolate the vector to another vector.
lerp(Vector, Vector, float) - Static method in class nub.primitives.Vector
Linear interpolate between two vectors (returns a new Vector object).
limit(float) - Method in class nub.primitives.Vector
Limit the magnitude of this vector.
line(float, float, float, float) - Method in class nub.processing.Scene
Same as context().line(x1, y1, x2, y2).
line(float, float, float, float, float, float) - Method in class nub.processing.Scene
Same as if (this.is2D()) line(context(), x1, y1, x2, y2); else line(context(), x1, y1, z1, x2, y2, z2);.
line(PGraphics, float, float, float, float) - Static method in class nub.processing.Scene
Wrapper for PGraphics.line(x1, y1, x2, y2).
line(PGraphics, float, float, float, float, float, float) - Static method in class nub.processing.Scene
Wrapper for PGraphics.line(x1, y1, z1, x2, y2, z2).
lnDif(Quaternion, Quaternion) - Static method in class nub.primitives.Quaternion
Simply returns log(a. inverse() * b).
loadConfig() - Method in class nub.processing.Scene
Same as loadConfig("data/config.json").
loadConfig(String) - Method in class nub.processing.Scene
Loads the Graph.eye(), the Graph.radius() and the Graph._type from fileName.
localDisplacement(float) - Method in class nub.core.Node
Converts scalar displacement from Node.reference() to this node.
localDisplacement(Quaternion) - Method in class nub.core.Node
Converts quaternion displacement from Node.reference() to this node.
localDisplacement(Vector) - Method in class nub.core.Node
Converts vector displacement from Node.reference() to this node.
localLocation(Vector) - Method in class nub.core.Node
Converts vector location from Node.reference() to this node.
location() - Method in class nub.processing.Scene
Same as return location(mouseX(), mouseY()).
location(int, int) - Method in class nub.processing.Scene
Returns the world coordinates of the 3D point located at (pixelX, pixelY) on screen.
location(Node) - Method in class nub.core.Node
Converts the node origin location to this node.
location(Vector) - Method in class nub.core.Graph
Convenience function that simply returns location(pixel, null).
location(Vector) - Method in class nub.core.Node
Converts vector location from world to this node.
location(Vector, Node) - Method in class nub.core.Graph
Returns the node coordinates of pixel.
location(Vector, Node) - Method in class nub.core.Node
Converts vector location from node to this node.
log() - Method in class nub.primitives.Quaternion
Returns the quaternion logarithm.
lookAround() - Method in class nub.processing.Scene
Same as super.lookAround(mouseRADX(), mouseRADY()).
lookAround(float) - Method in class nub.processing.Scene
Same as super.lookAround(mouseRADX(), mouseRADY(), inertia).
lookAround(float, float) - Method in class nub.core.Graph
Same as lookAround(deltaX, deltaY, Graph.inertia).
lookAround(float, float, float) - Method in class nub.core.Graph
Look around (without translating the eye) according to angular displacements deltaX and deltaY expressed in radians.
lookAt(Vector) - Method in class nub.core.Graph
2D eyes simply call node().setPosition(target.x(), target.y()).

M

m00() - Method in class nub.primitives.Matrix
Sets the 1st-row, 1st-column matrix entry.
m01() - Method in class nub.primitives.Matrix
Returns the 1st-row, 2nd-column matrix entry.
m02() - Method in class nub.primitives.Matrix
Returns the 1st-row, 3rd-column matrix entry.
m03() - Method in class nub.primitives.Matrix
Returns the 1st-row, 4th-column matrix entry.
m10() - Method in class nub.primitives.Matrix
Returns the 2nd-row, 1st-column matrix entry.
m11() - Method in class nub.primitives.Matrix
Returns the 2nd-row, 2nd-column matrix entry.
m12() - Method in class nub.primitives.Matrix
Returns the 2nd-row, 3rd-column matrix entry.
m13() - Method in class nub.primitives.Matrix
Returns the 2nd-row, 4th-column matrix entry.
m20() - Method in class nub.primitives.Matrix
Returns the 3rd-row, 1st-column matrix entry.
m21() - Method in class nub.primitives.Matrix
Returns the 3rd-row, 2nd-column matrix entry.
m22() - Method in class nub.primitives.Matrix
Returns the 3rd-row, 3rd-column matrix entry.
m23() - Method in class nub.primitives.Matrix
Returns the 3rd-row, 4th-column matrix entry.
m30() - Method in class nub.primitives.Matrix
Returns the 4th-row, 1st-column matrix entry.
m31() - Method in class nub.primitives.Matrix
Returns the 4th-row, 2nd-column matrix entry.
m32() - Method in class nub.primitives.Matrix
Returns the 4th-row, 3rd-column matrix entry.
m33() - Method in class nub.primitives.Matrix
Returns the 4th-row, 4th-column matrix entry.
magnitude() - Method in class nub.core.Node
Returns the node magnitude, defined with respect to the Node.reference().
magnitude() - Method in class nub.primitives.Vector
Calculate the magnitude (length) of the vector
matches(Node) - Method in class nub.core.Node
Returns whether this node matches other taking into account the Node.worldPosition(), Node.worldOrientation() and Node.worldMagnitude() node parameters.
matches(Matrix) - Method in class nub.primitives.Matrix
Returns whether or not this matrix matches other.
matches(Quaternion) - Method in class nub.primitives.Quaternion
Returns whether or not this quaternion matches other.
matches(Vector) - Method in class nub.primitives.Vector
Returns whether or not this vector matches other.
matrix() - Method in class nub.core.Node
Returns the local transformation matrix represented by the node.
matrix() - Method in class nub.primitives.Quaternion
Returns the rotation matrix associated with the quaternion.
Matrix - Class in nub.primitives
4x4 matrix affine matrix implementation.
Matrix() - Constructor for class nub.primitives.Matrix
Constructor for an identity matrix.
Matrix(float[]) - Constructor for class nub.primitives.Matrix
Same as this(data, true).
Matrix(float[], boolean) - Constructor for class nub.primitives.Matrix
Sets the matrix contents from the 16 entry source float array given in columnMajorOrder or row major order (if columnMajorOrder is false).
Matrix(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float) - Constructor for class nub.primitives.Matrix
Same as this(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15, true).
Matrix(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, boolean) - Constructor for class nub.primitives.Matrix
Same as set(m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15, columnMajorOrder).
MatrixHandler - Class in nub.core
The matrix handler specifies (and implements) various matrix operations needed by the Graph to properly perform its geometry transformations.
MatrixHandler() - Constructor for class nub.core.MatrixHandler
 
maxSteps - Static variable in class nub.core.Node
 
minMaxScalingFilter - Static variable in class nub.core.Node
Filters scaling so that the node magnitude lies in [min..max].
minusI - Static variable in class nub.primitives.Vector
Opposite of the first canonical vector (coordinates: -1, 0, 0).
minusJ - Static variable in class nub.primitives.Vector
Opposite of the second canonical vector (coordinates: 0, -1, 0).
minusK - Static variable in class nub.primitives.Vector
Opposite of the third canonical vector (coordinates: 0, 0, -1).
model() - Method in class nub.core.MatrixHandler
Returns the model matrix.
modelview() - Method in class nub.core.MatrixHandler
Same as return Matrix.multiply(view(), model()).
mouseDX() - Method in class nub.processing.Scene
Returns the last horizontal mouse displacement.
mouseDY() - Method in class nub.processing.Scene
Returns the last vertical mouse displacement.
mouseRADX() - Method in class nub.processing.Scene
Same as return mouseRADX(PI / width()).
mouseRADX(float) - Method in class nub.processing.Scene
Converts Scene.mouseDX() into angular displacement (in radians) according to sensitivity and returns it.
mouseRADY() - Method in class nub.processing.Scene
Same as return mouseRADY(PI / height()).
mouseRADY(float) - Method in class nub.processing.Scene
Converts Scene.mouseDY() into angular displacement (in radians) according to sensitivity and returns it.
mouseSpeed() - Method in class nub.processing.Scene
Returns the mouse speed expressed in pixels per milliseconds.
mouseX() - Method in class nub.processing.Scene
Returns the current mouse x coordinate.
mouseY() - Method in class nub.processing.Scene
Returns the current mouse y coordinate.
moveForward(float) - Method in class nub.core.Graph
Same as moveForward(delta, Graph.inertia).
moveForward(float, float) - Method in class nub.core.Graph
Same as translateEye(0, 0, delta / (zNear() - zFar())).
multiply(float) - Method in class nub.primitives.Vector
Multiply this vector by a scalar.
multiply(float[], float[]) - Method in class nub.primitives.Matrix
Multiply a three or four element vector source against this matrix and store the result in target.
multiply(Matrix, Matrix) - Static method in class nub.primitives.Matrix
Returns a x b.
multiply(Matrix, Matrix, Matrix) - Static method in class nub.primitives.Matrix
Define c as a x b.
multiply(Quaternion) - Method in class nub.primitives.Quaternion
Sets this as the quaternion product of itself and quaternion, (i.e., this = this * quaternion).
multiply(Quaternion, Quaternion) - Static method in class nub.primitives.Quaternion
Returns the product of quaternions a and b.
multiply(Quaternion, Vector) - Static method in class nub.primitives.Quaternion
Returns the image of vector by the rotation quaternion.
multiply(Vector) - Method in class nub.primitives.Matrix
Same as return multiply(source, null).
multiply(Vector) - Method in class nub.primitives.Quaternion
Returns the image of vector by the rotation of this vector.
multiply(Vector, float) - Static method in class nub.primitives.Vector
Multiply a vector by a scalar.
multiply(Vector, float, Vector) - Static method in class nub.primitives.Vector
Multiply a vector by a scalar, and write the result into a target vector.
multiply(Vector, Vector) - Method in class nub.primitives.Matrix
Multiply this matrix by the source vector and stores the result in the target vector which is then returned.
multiplyInverse(Quaternion) - Method in class nub.primitives.Quaternion
Multiplies this by the inverse of Quaternion q1 and places the value into this (i.e., this = this * q^-1).
multiplyInverse(Quaternion, Quaternion) - Static method in class nub.primitives.Quaternion
Returns the product of quaternion q1 by the inverse of quaternion q2 (i.e., q1 * q2^-1).

N

ndcToScreenDisplacement(Vector) - Method in class nub.core.Graph
Converts vector displacement from normalized device coordinates (NDC) to screen space.
ndcToScreenLocation(Vector) - Method in class nub.core.Graph
Converts vector location from normalized device coordinates (NDC) to screen space.
negate() - Method in class nub.primitives.Quaternion
Negates all the coefficients of the quaternion.
node() - Method in class nub.core.Graph
Same as return node(null).
node(String) - Method in class nub.core.Graph
Returns the node tagged with tag (which may be null) which is usually set by ray casting (see Graph.updateTag(String, int, int)).
Node - Class in nub.core
A node encapsulates a 2D or 3D coordinate system, represented by a Node.position(), an Node.orientation() and Node.magnitude() defined respect to a Node.reference() node.
Node() - Constructor for class nub.core.Node
Same as this(null, new Vector(), new Quaternion(), 1).
Node(boolean) - Constructor for class nub.core.Node
Same as {this(null, new Vector(), new Quaternion(), 1, attach)}.
Node(Consumer<PGraphics>) - Constructor for class nub.core.Node
Same as this(null, shape, new Vector(), new Quaternion(), 1).
Node(Node) - Constructor for class nub.core.Node
Same as this(reference, new Vector(), new Quaternion(), 1).
Node(Node, Consumer<PGraphics>) - Constructor for class nub.core.Node
Same as this(reference, shape, new Vector(), new Quaternion(), 1).
Node(Node, Consumer<PGraphics>, Vector, Quaternion, float) - Constructor for class nub.core.Node
Node(Node, Vector) - Constructor for class nub.core.Node
Same as this(reference, position, new Quaternion(), 1.
Node(Node, Vector, Quaternion) - Constructor for class nub.core.Node
Same as this(reference, position, orientation, 1.
Node(Node, Vector, Quaternion, float) - Constructor for class nub.core.Node
Creates a node with reference as Node.reference(), having position, orientation and magnitude as the Node.position(), Node.orientation() and Node.magnitude(), respectively.
Node(Node, PShape) - Constructor for class nub.core.Node
Same as this(reference, shape, new Vector(), new Quaternion(), 1).
Node(Node, PShape, Vector, Quaternion, float) - Constructor for class nub.core.Node
Creates a node with reference as Node.reference() and shape, having position, orientation and magnitude as the Node.position(), Node.orientation() and Node.magnitude(), respectively.
Node(Vector) - Constructor for class nub.core.Node
Same as this(null, position, new Quaternion(), 1).
Node(Vector, boolean) - Constructor for class nub.core.Node
Same as this(null, position, new Quaternion(), 1, attach).
Node(Vector, Quaternion) - Constructor for class nub.core.Node
Same as this(null, position, orientation, 1).
Node(Vector, Quaternion, boolean) - Constructor for class nub.core.Node
Same as this(null, position, orientation, 1, attach).
Node(Vector, Quaternion, float) - Constructor for class nub.core.Node
Same as this(null, position, orientation, magnitude).
Node(Vector, Quaternion, float, boolean) - Constructor for class nub.core.Node
Same as this(null, position, orientation, magnitude, attach).
Node(PShape) - Constructor for class nub.core.Node
Same as this(null, shape, new Vector(), new Quaternion(), 1).
Node.BullsEyeShape - Enum in nub.core
 
nodes() - Static method in class nub.core.Graph
Returns a list of all the nodes that are reachable by the Graph.render() algorithm.
norm() - Method in class nub.primitives.Quaternion
Returns the norm of this quaternion.
normalize() - Method in class nub.primitives.Quaternion
Normalize this quaternion return its Quaternion.norm().
normalize() - Method in class nub.primitives.Vector
Normalize the vector to length 1 (make it a unit vector).
normalize(Vector) - Method in class nub.primitives.Vector
Normalize this vector, storing the result in another vector.
nub.core - package nub.core
 
nub.primitives - package nub.primitives
 
nub.processing - package nub.processing
 

O

openContext() - Method in class nub.core.Graph
Begins the rendering process (see Graph.render(Node)).
orbit(Vector, float) - Method in class nub.core.Node
Rotates the node around axis passing through the origin, both defined in the world coordinate system.
orbit(Vector, float, float) - Method in class nub.core.Node
Same as orbit(axis, angle, new Vector(), inertia).
orbit(Vector, float, Vector) - Method in class nub.core.Node
Rotates the node around axis passing through center, both defined in the world coordinate system.
orbit(Vector, float, Vector, float) - Method in class nub.core.Node
Same as orbit(new Quaternion(displacement(axis), angle), center, inertia).
orientation() - Method in class nub.core.Node
Returns the node orientation, defined with respect to the Node.reference() (i.e, the current Quaternion orientation).
orthogonalVector() - Method in class nub.primitives.Vector
Same as return orthogonalVector(this).
orthogonalVector(Vector) - Static method in class nub.primitives.Vector
Utility function that returns a vector orthogonal to vector.
orthographic(float, float, float, float) - Static method in class nub.primitives.Matrix
Returns an orthographic projection matrix from the given parameters.
ORTHOGRAPHIC - nub.core.Graph.Type
 

P

pApplet - Static variable in class nub.processing.Scene
 
path(Node, Node) - Static method in class nub.core.Node
Returns an array containing a straight path of nodes from tail to tip.
perspective(float, float, float, float) - Static method in class nub.primitives.Matrix
Returns a perspective projection matrix from the given parameters.
PERSPECTIVE - nub.core.Graph.Type
 
picking - Variable in class nub.core.Graph
 
picking() - Method in class nub.core.Node
Returns the current visual picking hint mask encoding the visual aspects that are to be taken into account for picking the node with ray casting.
pixelDepth() - Method in class nub.processing.Scene
Same as return pixelDepth(mouseX(), mouseY()).
pixelDepth(int, int) - Method in class nub.processing.Scene
Returns the depth (z-value) of the object under the pixel.
pixelToLine(int, int, Vector, Vector) - Method in class nub.core.Graph
Gives the coefficients of a 3D half-line passing through the eye position and pixel (pixelX,pixelY).
pixelToLine(Vector, Vector) - Method in class nub.processing.Scene
Same as pixelToLine(mouseX(), mouseY(), origin, direction).
pixelToSceneRatio(Vector) - Method in class nub.core.Graph
Returns the pixel to scene (units) ratio at position.
plusI - Static variable in class nub.primitives.Vector
First canonical vector (coordinates: 1, 0, 0).
plusJ - Static variable in class nub.primitives.Vector
Second canonical vector (coordinates: 0, 1, 0).
plusK - Static variable in class nub.primitives.Vector
Third canonical vector (coordinates: 0, 0, 1).
pmouseX() - Method in class nub.processing.Scene
Returns the previous mouse x coordinate.
pmouseY() - Method in class nub.processing.Scene
Returns the previous mouse y coordinate.
popMatrix() - Method in class nub.core.MatrixHandler
Replace the current MatrixHandler.model() matrix with the top of the stack.
popProjection() - Method in class nub.core.MatrixHandler
Replace the current MatrixHandler.projection() matrix with the top of the stack.
position() - Method in class nub.core.Node
Returns the node position, defined with respect to the Node.reference().
pre() - Method in class nub.core.Graph
Paint method which is called just before your main event loop starts.
prettyVersion - Static variable in class nub.processing.Scene
 
projection() - Method in class nub.core.Graph
Returns the cached projection matrix computed at Graph.openContext().
projection() - Method in class nub.core.MatrixHandler
Returns the projection matrix.
projectionView() - Method in class nub.core.Graph
Returns the projection times view cached matrix computed at Graph.openContext()}.
projectionViewInverse() - Method in class nub.core.Graph
Returns the projection times view inverse matrix.
projectOnLine(Vector, Vector) - Method in class nub.core.Node
Translates the node so that its Node.worldPosition() lies on the line defined by origin and direction (defined in the world coordinate system).
projectVectorOnAxis(Vector) - Method in class nub.primitives.Vector
Same as return projectVectorOnAxis(this, direction).
projectVectorOnAxis(Vector, Vector) - Static method in class nub.primitives.Vector
Projects the vector on the axis defined by direction (which does not need to be normalized, but must be non null) that passes through the origin.
projectVectorOnPlane(Vector) - Method in class nub.primitives.Vector
Same as projectVectorOnPlane(this, normal).
projectVectorOnPlane(Vector, Vector) - Static method in class nub.primitives.Vector
Projects vector on the plane defined by normal (which does not need to be normalized, but must be non null) that passes through the origin.
pushMatrix() - Method in class nub.core.MatrixHandler
Push a copy of the MatrixHandler.model() matrix onto the stack.
pushProjection() - Method in class nub.core.MatrixHandler
Push a copy of the MatrixHandler.projection() matrix onto the stack.

Q

Quaternion - Class in nub.primitives
A 4 element unit quaternion represented by single precision floating point x,y,z,w coordinates.
Quaternion() - Constructor for class nub.primitives.Quaternion
Constructs and initializes a quaternion to (0.0,0.0,0.0,1.0), i.e., an identity rotation.
Quaternion(float) - Constructor for class nub.primitives.Quaternion
Same as fromAxisAngle(new Vector(0,0,1), angle).
Quaternion(float[]) - Constructor for class nub.primitives.Quaternion
Convenience constructor that simply calls this(source, true)
Quaternion(float[], boolean) - Constructor for class nub.primitives.Quaternion
Constructs and initializes a quaternion from the array of length 4.
Quaternion(float, float, float) - Constructor for class nub.primitives.Quaternion
Constructs a quaternion from the given Euler angles.
Quaternion(float, float, float, float) - Constructor for class nub.primitives.Quaternion
Default constructor for Quaternion(float x, float y, float z, float w, boolean normalize), with normalize=true.
Quaternion(float, float, float, float, boolean) - Constructor for class nub.primitives.Quaternion
Constructs and initializes a quaternion from the specified xyzw coordinates.
Quaternion(Matrix) - Constructor for class nub.primitives.Quaternion
Constructs a quaternion from a (supposedly correct) 3x3 rotation matrix given in the upper left 3x3 sub-matrix of the Matrix.
Quaternion(Quaternion, boolean) - Constructor for class nub.primitives.Quaternion
Copy constructor.
Quaternion(Vector, float) - Constructor for class nub.primitives.Quaternion
Constructs and initializes a quaternion from the specified rotation axis (non null) and angle (in radians).
Quaternion(Vector, Vector) - Constructor for class nub.primitives.Quaternion
Constructs a quaternion that will rotate from the from direction to the to direction.
Quaternion(Vector, Vector, Vector) - Constructor for class nub.primitives.Quaternion
Constructs a quaternion from the three rotated vectors of an orthogonal basis.

R

radius() - Method in class nub.core.Graph
Radius of the ball (defined in world coordinates) used in eye motions interaction (e.g., Graph.shift(float, float, float), Graph.spin(int, int, int, int), Graph.turn(float, float, float)) and interpolation routines (e.g., Graph.fit()).
random - Static variable in class nub.core.Graph
 
random() - Static method in class nub.primitives.Quaternion
Returns a normalized random quaternion.
random() - Static method in class nub.primitives.Vector
Returns a normalized random vector.
random(Graph) - Static method in class nub.core.Node
Returns a random node attached to graph.
random(Vector, float, boolean) - Static method in class nub.core.Node
Returns a random node.
randomize() - Method in class nub.primitives.Quaternion
Randomize this quaternion.
randomize() - Method in class nub.primitives.Vector
Randomize this vector.
randomize(Node) - Method in class nub.core.Graph
Same as node.randomize(center(), radius(), is3D()).
randomize(Vector, float, boolean) - Method in class nub.core.Node
Randomized this node.
randomNode() - Method in class nub.core.Graph
Same as return Node.random(this).
redID(int) - Static method in class nub.core.Node
Convert int id to red.
reference() - Method in class nub.core.Node
Returns the reference node, in which this node is defined.
referenceDisplacement(float) - Method in class nub.core.Node
Converts scalar displacement from this node to Node.reference().
referenceDisplacement(Quaternion) - Method in class nub.core.Node
Converts quaternion displacement from this node to Node.reference().
referenceDisplacement(Vector) - Method in class nub.core.Node
Converts vector displacement from this node to Node.reference().
referenceLocation(Vector) - Method in class nub.core.Node
Converts vector location from this node to Node.reference().
removeKeyFrame(float) - Method in class nub.core.Node
Remove the closest keyframe to time (in milliseconds) and returns it.
removeKeyFrames() - Method in class nub.core.Node
Removes all keyframes from the animation path.
removeTag() - Method in class nub.core.Graph
Same as removeTag(null).
removeTag(String) - Method in class nub.core.Graph
Removes the tag so that a call to Graph.isTagValid(String) will return false.
render() - Method in class nub.core.Graph
Renders the node tree onto the Graph.context() from the Graph.eye() viewpoint.
render(Node) - Method in class nub.core.Graph
Calls Graph.openContext(), then renders the node subtree (or the whole tree when subtree is null) onto the Graph.context() from the Graph.eye() viewpoint, and calls Graph.closeContext().
rendered(Graph) - Method in class nub.core.Node
Tells whether the node was rendered in the last frame from graph after a call to Graph.render(Node) is issued.
reset() - Method in class nub.core.Node
Sets an identity node by resetting its Node.position(), Node.orientation() and Node.magnitude().
reset() - Method in class nub.primitives.Matrix
Sets the identity matrix.
reset() - Method in class nub.primitives.Quaternion
Make this an identity quaternion.
reset() - Method in class nub.primitives.Vector
Sets all vector components to 0.
resetAnimation() - Method in class nub.core.Node
Resets the node animation.
resetBehavior(Graph) - Method in class nub.core.Node
Same as graph.resetBehavior(this).
resetBehavior(Node) - Method in class nub.core.Graph
Resets the node custom behavior which is set with Graph.addBehavior(Node, BiConsumer).
resetHint() - Method in class nub.core.Node
Resets the current Node.hint(), i.e., disables all single visual hints available for the node.
resetHUD() - Method in class nub.core.Node
resetIMRHUD() - Method in class nub.core.Node
Same as setIMRShape(null).
resetIMRShape() - Method in class nub.core.Node
Resets the immediate-mode rendering shape.
resetInertia() - Method in class nub.core.Node
Stops all node inertia's.
resetPicking() - Method in class nub.core.Node
Resets Node.picking(), i.e., disables all single visual hints available for node picking with ray casting.
resetReference() - Method in class nub.core.Node
Sets Node.reference() to the world and make this node reachable (see Node.isAttached()).
resetRMRHUD() - Method in class nub.core.Node
Same as setRMRShape(null).
resetRMRShape() - Method in class nub.core.Node
Resets the retained-mode rendering shape.
resetRotationFilter() - Method in class nub.core.Node
Nullifies the Node.rotationFilter().
resetScalingFilter() - Method in class nub.core.Node
Nullifies the Node.scalingFilter().
resetShape() - Method in class nub.core.Node
resetTranslationFilter() - Method in class nub.core.Node
rightVector() - Method in class nub.core.Graph
Returns the normalized right vector of the eye, defined in the world coordinate system.
rotate(float) - Method in class nub.core.MatrixHandler
Rotate around the Z axis.
rotate(float) - Method in class nub.primitives.Matrix
Same as _rotateZ(angle).
rotate(float) - Method in class nub.primitives.Vector
Rotate the vector by an angle (only 2D vectors), magnitude remains the same.
rotate(float, float, float, float) - Method in class nub.core.MatrixHandler
Rotate about a vector in space.
rotate(float, float, float, float) - Method in class nub.core.Node
Same as rotate(new Vector(x,y,z), angle).
rotate(float, float, float, float) - Method in class nub.primitives.Matrix
Multiply this matrix by the rotation matrix defined from the (v0,v1,v2) and angle.
rotate(float, float, float, float, float) - Method in class nub.core.Node
Same as rotate(new Vector(x, y, z), angle, inertia).
rotate(Quaternion) - Method in class nub.core.Node
Same as orientation().compose((rotationfilter() != null) ? rotationfilter().apply(this, cacheRotationParams) : quaternion).
rotate(Quaternion, float) - Method in class nub.core.Node
Rotates the node by quaternion (defined in the node coordinate system): orientation().compose(quaternion) and with an impulse defined with inertia which should be in [0..1], 0 no inertia & 1 no friction.
rotate(Vector) - Method in class nub.primitives.Quaternion
Returns the image of vector by the quaternion rotation.
rotate(Vector, float) - Method in class nub.core.Node
Same as rotate(new Quaternion(axis, angle)).
rotate(Vector, float, float) - Method in class nub.core.Node
Same as rotate(new Quaternion(axis, angle), inertia).
rotateX(float) - Method in class nub.primitives.Matrix
Multiply this matrix by the rotation around x-axis matrix defined from angle.
rotateY(float) - Method in class nub.primitives.Matrix
Multiply this matrix by the rotation around y-axis matrix defined from angle.
rotateZ(float) - Method in class nub.primitives.Matrix
Multiply this matrix by the rotation around z-axis matrix defined from angle.
rotationAxisFilter - Static variable in class nub.core.Node
Filters quaternion so that its Quaternion.axis() become axis (defined in this node coordinate system).
rotationFilter() - Method in class nub.core.Node
Returns the rotation filter used by Node.rotate(Quaternion).

S

saveConfig() - Method in class nub.processing.Scene
Same as saveConfig("data/config.json").
saveConfig(String) - Method in class nub.processing.Scene
Saves the Graph.eye(), the Graph.radius() and the Graph._type into fileName.
scalarProjection(Vector, Vector) - Static method in class nub.primitives.Vector
Returns the scalar projection of a onto b.
scale(float) - Method in class nub.core.Node
Same as magnitude() = magnitude() * (scalingFilter() != null ? scalingFilter().apply(this, cacheScalingParams) : scaling).
scale(float) - Method in class nub.primitives.Matrix
Multiply this matrix by the scaling matrix defined from s.
scale(float, float) - Method in class nub.core.MatrixHandler
Scale in X and Y.
scale(float, float) - Method in class nub.core.Node
Scales the node according to scaling, locally defined with respect to the Node.reference() and with an impulse defined with inertia which should be in [0..1], 0 no inertia & 1 no friction.
scale(float, float) - Method in class nub.primitives.Matrix
Multiply this matrix by the scaling matrix defined from sx and sy.
scale(float, float, float) - Method in class nub.core.MatrixHandler
Scale in X, Y, and Z.
scale(float, float, float) - Method in class nub.primitives.Matrix
Multiply this matrix by the scaling matrix defined from x, y and z.
scalingFilter() - Method in class nub.core.Node
Returns the scaling filter used by Node.scale(float).
Scene - Class in nub.processing
A 2D or 3D interactive, on-screen or off-screen, Processing mouse-driven Graph.
Scene(PApplet) - Constructor for class nub.processing.Scene
Same as this(pApplet.g).
Scene(PApplet, float) - Constructor for class nub.processing.Scene
Same as {this(pApplet.g, new Vector(), radius)}.
Scene(PApplet, Node) - Constructor for class nub.processing.Scene
Same as this(pApplet.g, eye).
Scene(PApplet, Node, float) - Constructor for class nub.processing.Scene
Same as this(pApplet, eye, new Vector(), radius).
Scene(PApplet, Node, Vector, float) - Constructor for class nub.processing.Scene
Same as this(pApplet.g, eye, center, rdius).
Scene(PApplet, Vector, float) - Constructor for class nub.processing.Scene
Same as this(pApplet.g, center, radius).
Scene(PGraphics) - Constructor for class nub.processing.Scene
Same as this(pGraphics, new Vector(), 100).
Scene(PGraphics, float) - Constructor for class nub.processing.Scene
Same as this(pGraphics, new Vector(), radius).
Scene(PGraphics, Node) - Constructor for class nub.processing.Scene
Same as super(pGraphics, pGraphics.width, pGraphics.height, eye).
Scene(PGraphics, Node, float) - Constructor for class nub.processing.Scene
Same as this(pGraphics, eye, new Vector(), radius).
Scene(PGraphics, Node, Vector, float) - Constructor for class nub.processing.Scene
Same as super(pGraphics, pGraphics.width, pGraphics.height, eye, type, center, radius), and then sets Graph.leftHanded to true.
Scene(PGraphics, Vector, float) - Constructor for class nub.processing.Scene
Same as super(pGraphics, pGraphics.width, pGraphics.height, pGraphics instanceof PGraphics2D ? Type.TWO_D : Type.PERSPECTIVE, center, radius), and then sets Graph.leftHanded to true.
Scene.Callback - Interface in nub.processing
 
sceneToPixelRatio(Vector) - Method in class nub.core.Graph
Returns the ratio of scene (units) to pixel at position.
screenDisplacement(Vector) - Method in class nub.core.Graph
Same as return screenDisplacement(vector, null).
screenDisplacement(Vector, Node) - Method in class nub.core.Graph
Converts the node vector displacement to screen space.
screenLocation(Node) - Method in class nub.core.Graph
Converts the node origin location to screen space.
screenLocation(Vector) - Method in class nub.core.Graph
Converts vector location from world to screen space.
screenLocation(Vector, Node) - Method in class nub.core.Graph
Converts vector location from node to screen.
screenToNDCDisplacement(Vector) - Method in class nub.core.Graph
Converts vector displacement from screen space to normalized device coordinates (NDC).
screenToNDCLocation(Vector) - Method in class nub.core.Graph
Converts vector location from screen space to normalized device coordinates (NDC).
SEMIVISIBLE - nub.core.Graph.Visibility
 
set(float[]) - Method in class nub.primitives.Matrix
Same as set(source, true).
set(float[]) - Method in class nub.primitives.Quaternion
Sets this quaternion from the four length source array.
set(float[]) - Method in class nub.primitives.Vector
Set the x, y (and maybe z) coordinates using a float[] array as the source.
set(float[], boolean) - Method in class nub.primitives.Matrix
Sets the matrix contents from the 16 entry float source array.
set(float, float) - Method in class nub.primitives.Vector
Set x and y coordinates.
set(float, float, float) - Method in class nub.primitives.Vector
Set x, y, and z coordinates.
set(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float) - Method in class nub.primitives.Matrix
 
set(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, boolean) - Method in class nub.primitives.Matrix
Sets the column-major matrix contents from the given 16 consecutive values.
set(Node) - Method in class nub.core.Node
Sets Node.worldPosition(), Node.worldOrientation() and Node.worldMagnitude() values from those of the node.
set(Matrix) - Method in class nub.primitives.Matrix
Sets the matrix contents from the matrix contents.
set(Quaternion) - Method in class nub.primitives.Quaternion
Convenience function that simply calls set(quaternion, true);
set(Quaternion, boolean) - Method in class nub.primitives.Quaternion
Set this from quaternion quaternion.
set(Vector) - Method in class nub.primitives.Vector
Set x, y, and z coordinates from a Vector object.
setAnimationRecurrence(boolean) - Method in class nub.core.Node
Enables (or disables) the recurrence of the keyframes animation.
setAnimationTime(float) - Method in class nub.core.Node
Sets the animation time (in milliseconds) used for the next Node.animate() call.
setBehavior(Graph, BiConsumer<Graph, Node>) - Method in class nub.core.Node
Same as graph.addBehavior(this, behavior).
setBehavior(Graph, Consumer<Graph>) - Method in class nub.core.Node
Same as graph.addBehavior(this, (g, n) -> behavior.accept(g)).
setBoundingBall(Vector, float) - Method in class nub.core.Graph
Sets the ball for Graph.zNear() and Graph.zFar() computations within the Graph.ballZNear() and Graph.ballZFar() functions.
setBullsEyeSize(float) - Method in class nub.core.Node
setCenter() - Method in class nub.processing.Scene
Same as return setCenter(mouseX(), mouseY()).
setCenter(int, int) - Method in class nub.processing.Scene
The Graph.center() is set to the point located under pixel on screen.
setCenter(Vector) - Method in class nub.core.Graph
setCenterFromPixel(int, int) - Method in class nub.processing.Scene
The Graph.center() is set to the point located under pixel on screen.
setEye(Node) - Method in class nub.core.Graph
Replaces the current Graph.eye() with eye.
setForbidRotationFilter() - Method in class nub.core.Node
Same as setRotationFilter(forbidRotationFilter, new Object[] {}).
setForbidScalingFilter() - Method in class nub.core.Node
Same as setScalingFilter(forbidScalingFilter, new Object[] {}).
setForbidTranslationFilter() - Method in class nub.core.Node
Same as setTranslationFilter(forbidTranslationFilter, new Object[] {}).
setFOV(float) - Method in class nub.core.Graph
Sets the Graph.eye() Node.worldMagnitude(), according to fov (field-of-view) which is expressed in radians.
setHeight(int) - Method in class nub.core.Graph
Sets the graph Graph.height() in pixels.
setHFOV(float) - Method in class nub.core.Graph
Sets the Graph.hfov() of the Graph.eye() (in radians).
setHighlight(float) - Method in class nub.core.Node
Sets the node Node.highlight() which should be a value in [0..1].
setHUD(Consumer<PGraphics>) - Method in class nub.core.Node
Sets the node immediate mode rendering (imr) drawing procedure Node.HUD hint (see Node.hint()).
setHUD(Node) - Method in class nub.core.Node
Sets this (H)eads (U)p (D)isplay from the node hud.
setHUD(PShape) - Method in class nub.core.Node
Sets the node retained mode rendering (rmr) shape Node.HUD hint (see Node.hint()).
setInteraction(BiConsumer<Node, Object[]>) - Method in class nub.core.Node
Sets the node interaction procedure callback which is a function that takes a node param (holding this node instance) and, optionally, a gesture encoded as an array of on Object params.
setInteraction(Consumer<Object[]>) - Method in class nub.core.Node
Sets the node interaction procedure callback which is a function implemented by a Node derived class and which takes no params, or a gesture encoded as an array of on Object params.
setM00(float) - Method in class nub.primitives.Matrix
Sets the 1st-row, 1st-column matrix entry.
setM01(float) - Method in class nub.primitives.Matrix
Sets the 1st-row, 2nd-column matrix entry.
setM02(float) - Method in class nub.primitives.Matrix
Sets the 1st-row, 3rd-column matrix entry.
setM03(float) - Method in class nub.primitives.Matrix
Sets the 1st-row, 4th-column matrix entry.
setM10(float) - Method in class nub.primitives.Matrix
Sets the 2nd-row, 1st-column matrix entry.
setM11(float) - Method in class nub.primitives.Matrix
Sets the 2nd-row, 2nd-column matrix entry.
setM12(float) - Method in class nub.primitives.Matrix
Sets the 2nd-row, 3rd-column matrix entry.
setM13(float) - Method in class nub.primitives.Matrix
Sets the 2nd-row, 4th-column matrix entry.
setM20(float) - Method in class nub.primitives.Matrix
Sets the 3rd-row, 1st-column matrix entry.
setM21(float) - Method in class nub.primitives.Matrix
Sets the 3rd-row, 2nd-column matrix entry.
setM22(float) - Method in class nub.primitives.Matrix
Sets the 3rd-row, 3rd-column matrix entry.
setM23(float) - Method in class nub.primitives.Matrix
Sets the 3rd-row, 4th-column matrix entry.
setM30(float) - Method in class nub.primitives.Matrix
Sets the 4th-row, 1st-column matrix entry.
setM31(float) - Method in class nub.primitives.Matrix
Sets the 4th-row, 2nd-column matrix entry.
setM32(float) - Method in class nub.primitives.Matrix
Sets the 4th-row, 3rd-column matrix entry.
setM33(float) - Method in class nub.primitives.Matrix
Sets the 4th-row, 4th-column matrix entry.
setMagnitude(float) - Method in class nub.core.Node
Sets the Node.magnitude() of the node, locally defined with respect to the Node.reference().
setMagnitude(float) - Method in class nub.primitives.Vector
Sets the magnitude of the vector to an arbitrary amount.
setMagnitude(Vector, float) - Method in class nub.primitives.Vector
Sets the magnitude of this vector, storing the result in another vector.
setMinMaxScalingFilter(float, float) - Method in class nub.core.Node
Same as setScalingFilter(Node.minMaxScalingFilter, new Object[] { min, max }).
setOrientation(float, float, float, float) - Method in class nub.core.Node
Same as Node.setOrientation(Quaternion) but with float Quaternion parameters.
setOrientation(Quaternion) - Method in class nub.core.Node
Sets the node Node.orientation(), locally defined with respect to the Node.reference().
setPosition(float, float) - Method in class nub.core.Node
Same as Node.setPosition(Vector), but with float parameters.
setPosition(float, float, float) - Method in class nub.core.Node
Same as Node.setPosition(Vector), but with float parameters.
setPosition(Vector) - Method in class nub.core.Node
Caches the Node.position() of the node, locally defined with respect to the Node.reference().
setRadius(float) - Method in class nub.core.Graph
setReference(Node) - Method in class nub.core.Node
Sets the Node.reference() of the node.
setRotationAxisFilter(Vector) - Method in class nub.core.Node
Same as setRotationFilter(Node.rotationAxisFilter, new Object[] { axis }).
setRotationFilter(BiFunction<Node, Object[], Quaternion>, Object[]) - Method in class nub.core.Node
Sets the Node.rotationFilter() and its cacheRotationParams.
setScalingFilter(BiFunction<Node, Object[], Float>, Object[]) - Method in class nub.core.Node
Sets the Node.scalingFilter() and its cacheScalingParams.
setShape(Consumer<PGraphics>) - Method in class nub.core.Node
Sets the node immediate mode rendering (imr) Node.SHAPE procedure hint (see Node.hint()).
setShape(Node) - Method in class nub.core.Node
Sets this shape from the node shape.
setShape(PShape) - Method in class nub.core.Node
Sets the node retained mode rendering (rmr) Node.SHAPE hint (see Node.hint()).
setTranslationAxisFilter(Vector) - Method in class nub.core.Node
Same as setTranslationFilter(translationAxisFilter, new Object[] { axis }).
setTranslationFilter(BiFunction<Node, Object[], Vector>, Object[]) - Method in class nub.core.Node
Sets the Node.translationFilter() and its cacheTranslationParams.
setTranslationFilter(Function<Object[], Vector>, Object[]) - Method in class nub.core.Node
 
setTranslationPlaneFilter(Vector) - Method in class nub.core.Node
Same as setTranslationFilter(translationPlaneFilter, new Object[] { axis }).
setType(Graph.Type) - Method in class nub.core.Graph
Defines the graph Graph._type according to the projection of the scene.
setUniform(PShader, String, Matrix) - Static method in class nub.processing.Scene
Sets the name shader uniform from matrix.
setUniform(PShader, String, Vector) - Static method in class nub.processing.Scene
Sets the name shader uniform from vector.
setUpVector(Vector) - Method in class nub.core.Graph
Convenience function that simply calls setUpVector(up, true).
setUpVector(Vector, boolean) - Method in class nub.core.Graph
Rotates the eye so that its Graph.upVector() becomes up (defined in the world coordinate system).
setViewDirection(Vector) - Method in class nub.core.Graph
Rotates the eye so that its Graph.viewDirection() is direction (defined in the world coordinate system).
setW(float) - Method in class nub.primitives.Quaternion
Sets the Quaternion w component
setWidth(int) - Method in class nub.core.Graph
Sets the graph Graph.width() in pixels.
setWorldMagnitude(float) - Method in class nub.core.Node
Sets the Node.worldMagnitude() of the node, defined in the world coordinate system.
setWorldMagnitude(Node) - Method in class nub.core.Node
Sets the Node.worldMagnitude() to that of node.
setWorldOrientation(float, float, float, float) - Method in class nub.core.Node
Same as Node.setWorldOrientation(Quaternion), but with float parameters.
setWorldOrientation(Node) - Method in class nub.core.Node
Sets the Node.worldOrientation() to that of node.
setWorldOrientation(Quaternion) - Method in class nub.core.Node
Sets the Node.worldOrientation() of the node, defined in the world coordinate system.
setWorldPosition(float, float) - Method in class nub.core.Node
Same as Node.setWorldPosition(Vector), but with float parameters.
setWorldPosition(float, float, float) - Method in class nub.core.Node
Same as Node.setWorldPosition(Vector), but with float parameters.
setWorldPosition(Node) - Method in class nub.core.Node
Sets the Node.worldPosition() to that of node.
setWorldPosition(Vector) - Method in class nub.core.Node
Sets the node Node.worldPosition(), defined in the world coordinate system.
setX(float) - Method in class nub.primitives.Quaternion
Sets the Quaternion x component
setX(float) - Method in class nub.primitives.Vector
Sets the x component of the vector.
setXAxis(Vector) - Method in class nub.core.Node
Rotates the node so that its Node.xAxis() becomes axis defined in the world coordinate system.
setY(float) - Method in class nub.primitives.Quaternion
Sets the Quaternion y component
setY(float) - Method in class nub.primitives.Vector
Sets the y component of the vector.
setYAxis(Vector) - Method in class nub.core.Node
Rotates the node so that its Node.yAxis() becomes axis defined in the world coordinate system.
setZ(float) - Method in class nub.primitives.Quaternion
Sets the Quaternion z component
setZ(float) - Method in class nub.primitives.Vector
Sets the z component of the vector.
setZAxis(Vector) - Method in class nub.core.Node
Rotates the node so that its Node.zAxis() becomes axis defined in the world coordinate system.
setZFar(Supplier<Float>) - Method in class nub.core.Graph
Sets the Graph.zFar() computation routine.
setZNear(Supplier<Float>) - Method in class nub.core.Graph
Sets the Graph.zNear() computation routine.
SHAPE - Static variable in class nub.core.Node
 
shearX(float) - Method in class nub.primitives.Matrix
Multiply this matrix by the x-shearing matrix defined from angle.
shearY(float) - Method in class nub.primitives.Matrix
Multiply this matrix by the y-shearing matrix defined from angle.
shift() - Method in class nub.processing.Scene
Same as shift(Graph.inertia).
shift(float) - Method in class nub.processing.Scene
Same as shift((String)null, inertia).
shift(float, float, float) - Method in class nub.core.Graph
Same as shift(dx, dy, dz, Graph.inertia).
shift(float, float, float, float) - Method in class nub.core.Graph
Same as shift((String)null, dx, dy, dz, inertia).
shift(String) - Method in class nub.processing.Scene
Same as shift(tag, Graph.inertia).
shift(String, float) - Method in class nub.processing.Scene
Same as if (tag == null || node(tag) != null) shift(node(tag), inertia).
shift(String, float, float, float) - Method in class nub.core.Graph
Same as shift(tag, dx, dy, dz, Graph.inertia).
shift(String, float, float, float, float) - Method in class nub.core.Graph
Same as if (tag == null || node(tag) != null) shift(node(tag), dx, dy, dz, inertia).
shift(Node) - Method in class nub.processing.Scene
Same as .
shift(Node, float) - Method in class nub.processing.Scene
Same as super.shift(node, mouseDX() * (1 - lag), mouseDY() * (1 - lag), 0, lag).
shift(Node, float, float, float) - Method in class nub.core.Graph
Same as shift(node, dx, dy, dz, Graph.inertia).
shift(Node, float, float, float, float) - Method in class nub.core.Graph
Translates the node (use null for the world) according to (dx, dy, dz) defined in screen-space ((a box of Graph.width() * Graph.height() * 1 dimensions), and inertia which should be in [0..1], 0 no inertia & 1 no friction.
slerp(Quaternion, Quaternion, float) - Static method in class nub.primitives.Quaternion
Wrapper function that simply calls slerp(a, b, t, true).
slerp(Quaternion, Quaternion, float, boolean) - Static method in class nub.primitives.Quaternion
Returns the slerp interpolation of quaternions a and b, at time t.
spin() - Method in class nub.processing.Scene
Same as spin((String)null).
spin(float) - Method in class nub.processing.Scene
Same as spin((String)null, inertia).
spin(int, int, int, int) - Method in class nub.core.Graph
Same as spin(pixel1X, pixel1Y, pixel2X, pixel2Y, Graph.inertia).
spin(int, int, int, int, float) - Method in class nub.core.Graph
Same as spin((String)null, pixel1X, pixel1Y, pixel2X, pixel2Y, inertia).
spin(String) - Method in class nub.processing.Scene
Same as spin(tag, Graph.inertia).
spin(String, float) - Method in class nub.processing.Scene
Same as if (tag == null || node(tag) != null) spin(node(tag), inertia).
spin(String, int, int, int, int) - Method in class nub.core.Graph
Same as spin(tag, pixel1X, pixel1Y, pixel2X, pixel2Y, Graph.inertia).
spin(String, int, int, int, int, float) - Method in class nub.core.Graph
Same as if (tag == null || node(tag) != null) spin(node(tag), pixel1X, pixel1Y, pixel2X, pixel2Y, inertia).
spin(Node) - Method in class nub.processing.Scene
Same as spin(node, Graph.inertia).
spin(Node, float) - Method in class nub.processing.Scene
Same as super.spinNode(node, pmouseX(), pmouseY(), mouseX(), mouseY(), inertia).
spin(Node, int, int, int, int) - Method in class nub.core.Graph
Same as spin(node, pixel1X, pixel1Y, pixel2X, pixel2Y, Graph.inertia).
spin(Node, int, int, int, int, float) - Method in class nub.core.Graph
Rotates the node (use null for the world) using an arcball interface, from points (pixel1X, pixel1Y) to (pixel2X, pixel2Y) pixel positions.
squad(Quaternion, Quaternion, Quaternion, Quaternion, float) - Static method in class nub.primitives.Quaternion
Returns the slerp interpolation of the two quaternions a and b, at time t, using tangents tgA and tgB.
squadTangent(Quaternion, Quaternion, Quaternion) - Static method in class nub.primitives.Quaternion
Returns a tangent quaternion for center, defined by before and after quaternions.
SQUARE - nub.core.Node.BullsEyeShape
 
squaredMagnitude() - Method in class nub.primitives.Vector
Calculate the squared magnitude of the vector.
squaredNorm() - Method in class nub.primitives.Vector
Same as return squaredNorm(this).
squaredNorm(Quaternion) - Static method in class nub.primitives.Quaternion
Utility function that returns the squared norm of the quaternion.
squaredNorm(Vector) - Static method in class nub.primitives.Vector
Utility function that returns the squared norm of the vector.
STACK_DEPTH - Static variable in class nub.core.MatrixHandler
 
subtract(float, float, float) - Method in class nub.primitives.Vector
 
subtract(Vector) - Method in class nub.primitives.Vector
Subtract a vector from this vector.
subtract(Vector, Vector) - Static method in class nub.primitives.Vector
Subtract one vector from another.
subtract(Vector, Vector, Vector) - Static method in class nub.primitives.Vector
Subtract one vector from another and store in another vector.

T

tag() - Method in class nub.processing.Scene
Same as super.tag(mouseX(), mouseY()).
tag(int, int) - Method in class nub.core.Graph
Same as tag(null, pixelX, pixelY).
tag(String) - Method in class nub.processing.Scene
Same as super.tag(tag, mouseX(), mouseY()).
tag(String, int, int) - Method in class nub.core.Graph
Same as Graph.updateTag(String, int, int) but doesn't return immediately the tagged node.
tag(String, Node) - Method in class nub.core.Graph
Tags the node (with tag which may be null) (see Graph.node(String)).
tag(Node) - Method in class nub.core.Graph
Same as tag(null, node).
tagging - Variable in class nub.core.Node
 
toggleAnimation() - Method in class nub.core.Node
Toggles the node animation.
toggleHint(int) - Method in class nub.core.Node
Toggles all single visual hints encoded in the bitwise-or hint mask.
togglePerspective() - Method in class nub.core.Graph
Shifts the graph Graph._type between Graph.Type.PERSPECTIVE and Graph.Type.ORTHOGRAPHIC while trying to keep the Graph.fov().
togglePicking(int) - Method in class nub.core.Node
Toggles all single visual hints encoded in the bitwise-or hint mask.
toMatrix(PMatrix2D) - Static method in class nub.processing.Scene
Converts a PMatrix2D to a Matrix.
toMatrix(PMatrix3D) - Static method in class nub.processing.Scene
Converts a PMatrix3D to a Matrix.
toPMatrix(Matrix) - Static method in class nub.processing.Scene
Converts a Matrix to a PMatrix3D.
toPMatrix2D(Matrix) - Static method in class nub.processing.Scene
Converts a Matrix to a PMatrix2D.
toPVector(Vector) - Static method in class nub.processing.Scene
Converts a Vector to a PVector.
TORUS - Static variable in class nub.core.Node
 
toString() - Method in class nub.core.Node
Return this node components as a String.
toString() - Method in class nub.primitives.Matrix
Return this matrix components as a String.
toString() - Method in class nub.primitives.Quaternion
Return this quaternion components as a String.
toString() - Method in class nub.primitives.Vector
Return this vector components as a String.
toVector(PVector) - Static method in class nub.processing.Scene
Converts a PVector to a Vector.
tracks(Node) - Method in class nub.processing.Scene
Same as return super.tracks(node, mouseX(), mouseY()).
tracks(Node, int, int) - Method in class nub.core.Graph
Casts a ray at pixel position (pixelX, pixelY) and returns true if the ray picks the node and false otherwise.
transform() - Method in class nub.core.MatrixHandler
translate(float, float) - Method in class nub.core.MatrixHandler
Translate in X and Y.
translate(float, float) - Method in class nub.primitives.Matrix
Same as translate(tx, ty, 0.
translate(float, float, float) - Method in class nub.core.MatrixHandler
Translate in X, Y, and Z.
translate(float, float, float) - Method in class nub.core.Node
Same as Node.translate(Vector) but with float parameters.
translate(float, float, float) - Method in class nub.primitives.Matrix
Multiply this matrix by the translation matrix defined from tx, ty and tz.
translate(float, float, float, float) - Method in class nub.core.Node
Same as translate(new Vector(x, y, z), inertia).
translate(Vector) - Method in class nub.core.Node
Same as position().add((translationFilter() != null) ? translationFilter().apply(this, cacheTranslationParams) : vector).
translate(Vector, float) - Method in class nub.core.Node
Translates the node according to vector, locally defined with respect to the Node.reference() and with an impulse defined with inertia which should be in [0..1], 0 no inertia & 1 no friction.
translationAxisFilter - Static variable in class nub.core.Node
Filters translation so that the node is translated along axis (defined in this node coordinate system).
translationFilter() - Method in class nub.core.Node
Returns the translation filter used by Node.translate(Vector).
translationPlaneFilter - Static variable in class nub.core.Node
Filters translation so that the node is translated along the plane defined by normal (defined in this node coordinate system).
transpose() - Method in class nub.primitives.Matrix
Transpose this matrix.
turn(float, float, float) - Method in class nub.core.Graph
Same as turn(roll, pitch, yaw, Graph.inertia).
turn(float, float, float, float) - Method in class nub.core.Graph
Same as turn((String)null, roll, pitch, yaw, inertia).
turn(String, float, float, float) - Method in class nub.core.Graph
Same as turn(tag, roll, pitch, yaw, Graph.inertia).
turn(String, float, float, float, float) - Method in class nub.core.Graph
Same as if (tag == null || node(tag) != null) turn(node(tag), roll, pitch, yaw, inertia).
turn(Node, float, float, float) - Method in class nub.core.Graph
Same as turn(node, roll, pitch, yaw, Graph.inertia).
turn(Node, float, float, float, float) - Method in class nub.core.Graph
Rotates the node (use null for the world) around the x-y-z screen axes according to roll, pitch and yaw radians, resp., and according to inertia which should be in [0..1], 0 no inertia & 1 no friction.
TWO_D - nub.core.Graph.Type
 
type() - Method in class nub.core.Graph
Returns the graph type.

U

untag(Node) - Method in class nub.core.Graph
Removes all tags pointing to the node.
updateTag() - Method in class nub.processing.Scene
Same as return super.updateTag(mouseX(), mouseY()).
updateTag(int, int) - Method in class nub.core.Graph
Same as return updateTag(null, null, pixelX, pixelY).
updateTag(int, int, List<Node>) - Method in class nub.core.Graph
Same as return track(null, pixelX, pixelY, nodeList).
updateTag(int, int, Node[]) - Method in class nub.core.Graph
Same as return track(null, pixelX, pixelY, nodeArray).
updateTag(String) - Method in class nub.processing.Scene
Same as return updateTag(null, tag).
updateTag(String, int, int) - Method in class nub.core.Graph
Tags (with tag which may be null) the node in Graph.nodes() picked with ray-casting at pixel pixelX, pixelY and returns it (see Graph.node(String)).
updateTag(String, int, int, List<Node>) - Method in class nub.core.Graph
Same as Graph.updateTag(String, int, int, Node[]) but using a node list instead of an array.
updateTag(String, int, int, Node[]) - Method in class nub.core.Graph
Tags (with tag which may be null) the node in nodeArray picked with ray-casting at pixel pixelX, pixelY and returns it (see Graph.node(String)).
updateTag(String, List<Node>) - Method in class nub.processing.Scene
Same as return super.track(mouse(), nodeList).
updateTag(String, Node[]) - Method in class nub.processing.Scene
Same as return super.updateTag(tag, mouseX(), mouseY(), nodes).
updateTag(List<Node>) - Method in class nub.processing.Scene
Same as return super.updateTag(mouseX(), mouseY(), nodeList).
updateTag(Node) - Method in class nub.processing.Scene
Same as return updateTag(subtree, null).
updateTag(Node[]) - Method in class nub.processing.Scene
Same as return super.track(mouse(), nodeArray).
updateTag(Node, int, int) - Method in class nub.core.Graph
Same as return return updateTag(subtree, null, pixelX, pixelY).
updateTag(Node, String) - Method in class nub.processing.Scene
Same as return super.updateTag(subtree, tag, mouseX(), mouseY()).
updateTag(Node, String, int, int) - Method in class nub.core.Graph
Tags (with tag which may be null) the node in the subtree (or the whole tree when subtree is null) picked with ray-casting at pixel pixelX, pixelY and returns it (see Graph.node(String)).
upVector() - Method in class nub.core.Graph
Returns the normalized up vector of the eye, defined in the world coordinate system.

V

valueOf(String) - Static method in enum nub.core.Graph.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum nub.core.Graph.Visibility
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum nub.core.Node.BullsEyeShape
Returns the enum constant of this type with the specified name.
values() - Static method in enum nub.core.Graph.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum nub.core.Graph.Visibility
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum nub.core.Node.BullsEyeShape
Returns an array containing the constants of this enum type, in the order they are declared.
Vector - Class in nub.primitives
A class to describe a two or three dimensional vector.
Vector() - Constructor for class nub.primitives.Vector
Constructor for an empty vector: x, y, and z are set to 0.
Vector(float, float) - Constructor for class nub.primitives.Vector
Constructor for a 2D vector: z coordinate is set to 0.
Vector(float, float, float) - Constructor for class nub.primitives.Vector
Constructor for a 3D vector.
vectorProjection(Vector, Vector) - Static method in class nub.primitives.Vector
Returns the vector projection of a onto b.
version - Static variable in class nub.processing.Scene
 
vertex(float[]) - Method in class nub.processing.Scene
Same as vertex(context(), v).
vertex(float, float) - Method in class nub.processing.Scene
Same as vertex(context(), x, y).
vertex(float, float, float) - Method in class nub.processing.Scene
Same as if (this.is2D()) vertex(context(), x, y); else vertex(context(), x, y, z).
vertex(float, float, float, float) - Method in class nub.processing.Scene
Same as vertex(context(), x, y, u, v).
vertex(float, float, float, float, float) - Method in class nub.processing.Scene
Same as if (this.is2D()) vertex(context(), x, y, u, v); else vertex(context(), x, y, z, u, v);.
vertex(PGraphics, float[]) - Static method in class nub.processing.Scene
Wrapper for PGraphics.vertex(v)
vertex(PGraphics, float, float) - Static method in class nub.processing.Scene
Wrapper for PGraphics.vertex(x,y)
vertex(PGraphics, float, float, float) - Static method in class nub.processing.Scene
Wrapper for PGraphics.vertex(x,y,z)
vertex(PGraphics, float, float, float, float) - Static method in class nub.processing.Scene
Wrapper for PGraphics.vertex(x,y,u,v)
vertex(PGraphics, float, float, float, float, float) - Static method in class nub.processing.Scene
Wrapper for PGraphics.vertex(x,y,z,u,v)
view() - Method in class nub.core.Graph
Returns the cached view matrix computed at Graph._bind().
view() - Method in class nub.core.MatrixHandler
Returns the view matrix.
view() - Method in class nub.core.Node
Returns the inverse of the matrix associated with the node position and orientation that is to be used when the node represents an eye.
view(Vector, Quaternion) - Static method in class nub.primitives.Matrix
Returns the inverse of the matrix associated with the eye position and orientation.
viewDirection() - Method in class nub.core.Graph
Returns the normalized view direction of the eye, defined in the world coordinate system.
viewInverse() - Method in class nub.core.Node
Returns the inverse of the Node.view() matrix.
VISIBLE - nub.core.Graph.Visibility
 

W

w() - Method in class nub.primitives.Quaternion
 
width() - Method in class nub.core.Graph
Returns width of the screen window.
worldDisplacement(float) - Method in class nub.core.Node
Converts scalar displacement from this node to world.
worldDisplacement(Quaternion) - Method in class nub.core.Node
Converts quaternion displacement from this node to world.
worldDisplacement(Vector) - Method in class nub.core.Node
Converts vector displacement from this node to world.
worldInverse() - Method in class nub.core.Node
 
worldInverse(boolean) - Method in class nub.core.Node
Returns the Node.inverse() of the node world transformation.
worldLocation(Vector) - Method in class nub.core.Node
Converts vector location from this node to world.
worldMagnitude() - Method in class nub.core.Node
Returns the magnitude of the node, defined in the world coordinate system.
worldMatrix() - Method in class nub.core.Node
Returns the global transformation matrix represented by the node which grants direct access to it, without the need to traverse its ancestor hierarchy first (as it is the case with Node.matrix()).
worldOrientation() - Method in class nub.core.Node
Returns the orientation of the node, defined in the world coordinate system.
worldPosition() - Method in class nub.core.Node
Returns the node position defined in the world coordinate system.

X

x() - Method in class nub.primitives.Quaternion
 
x() - Method in class nub.primitives.Vector
Returns the x component of the vector.
xAxis() - Method in class nub.core.Node
Same as return xAxis(true)
xAxis(boolean) - Method in class nub.core.Node
Returns the x-axis of the node, represented as a normalized vector defined in the world coordinate system.

Y

y() - Method in class nub.primitives.Quaternion
 
y() - Method in class nub.primitives.Vector
Returns the y component of the vector.
yAxis() - Method in class nub.core.Node
Same as return yAxis(true)
yAxis(boolean) - Method in class nub.core.Node
Returns the y-axis of the node, represented as a normalized vector defined in the world coordinate system.

Z

z() - Method in class nub.primitives.Quaternion
 
z() - Method in class nub.primitives.Vector
Returns the z component of the vector.
zAxis() - Method in class nub.core.Node
Same as return zAxis(true)
zAxis(boolean) - Method in class nub.core.Node
Returns the z-axis of the node, represented as a normalized vector defined in the world coordinate system.
zero - Static variable in class nub.primitives.Vector
Zero vector (coordinates: 0, 0, 0).
zFar() - Method in class nub.core.Graph
Returns the far clipping plane distance used to compute the Graph.projection() matrix.
zFarSupplier() - Method in class nub.core.Graph
Retrieves the current Graph.zFar() computation routine.
zNear() - Method in class nub.core.Graph
Returns the near clipping plane distance used to compute the Graph.projection() matrix.
zNearSupplier() - Method in class nub.core.Graph
Retrieves the current Graph.zNear() computation routine.
zoom(float) - Method in class nub.core.Graph
Same as zoom(delta, Graph.inertia).
zoom(float, float) - Method in class nub.core.Graph
Same as zoom((String)null, delta, inertia).
zoom(String, float) - Method in class nub.core.Graph
Same as zoom(tag, delta, Graph.inertia).
zoom(String, float, float) - Method in class nub.core.Graph
Same as if (tag == null || node(tag) != null) zoom(node(tag), delta, inertia).
zoom(Node, float) - Method in class nub.core.Graph
Same as zoom(node, delta, Graph.inertia).
zoom(Node, float, float) - Method in class nub.core.Graph
Scales the node (use null for the world) according to delta and inertia which should be in [0..1], 0 no inertia & 1 no friction.

_

_matrix - Variable in class nub.primitives.Matrix
 
_quaternion - Variable in class nub.primitives.Quaternion
The x, y, z, and w coordinates of the quaternion represented as a public array.
_seeded - Static variable in class nub.core.Graph
 
_vector - Variable in class nub.primitives.Vector
The x, y and z coordinates of the Vector.
A B C D E F G H I K L M N O P Q R S T U V W X Y Z _ 
All Classes All Packages