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
All Classes All Packages
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 maskhint
. - 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 giventime
(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 itsNode.reference()
. - applyWorldTransformation(Node) - Method in class nub.core.MatrixHandler
-
Similar to
MatrixHandler.applyTransformation(Node)
, but applies the global transformation defined by thenode
. - aspectRatio() - Method in class nub.core.Graph
-
Returns the
Graph.width()
toGraph.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
, orGraph.Visibility.SEMIVISIBLE
, depending whether the ball (of radiusradius
and centercenter
) 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 theGraph.center()
: - ballZNear() - Method in class nub.core.Graph
-
The clipping planes' positions depend on the
Graph.radius()
andGraph.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
-
Updates the
MatrixHandler.projection()
,MatrixHandler.view()
andMatrixHandler.model()
matrices and callMatrixHandler._setUniforms()
. - 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
, orGraph.Visibility.SEMIVISIBLE
, depending whether the axis aligned box (defined by cornersp1
andp2
) 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 aFloat
. - castToInt(Object) - Static method in class nub.core.Graph
-
Cast
o
to anInteger
. - 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)
returnsnull
. - 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
istrue
. - 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 thenode
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 fromnode
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 fromnode
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 thenode
coordinate system. - displacement(Vector, Node) - Method in class nub.core.Node
-
Converts
vector
displacement fromnode
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
-
Same as
Scene.saveConfig()
. - 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 planeindex
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
andb
: - 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 PlaneminAngle
andmaxAngle
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
andlength
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
betweenfrom
and the 3D pointto
. - 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
ontopGraphics
. - 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
- 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-axisa
andb
andheight
dimensions. - drawCone(PGraphics, float, List<Vector>) - Method in class nub.processing.Scene
-
Draws a cone onto
pGraphics
centered at(0,0)
wherevertices
represents a polygon on XY Plane and withheight
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)
havingradius
andheight
dimensions. - drawCone(PGraphics, int, float, float, float, float, float) - Static method in class nub.processing.Scene
-
Draws a truncated cone onto
pGraphics
along the positivez
axis, with its base centered at(x,y)
,height
, and radiiradius1
andradius2
(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)
wherevertices
represents the base of the Polygon and withscale
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 sizelength
ontoScene.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, havinglength
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
andheight
ontopGraphics
. - 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
ontopGraphics
in the XY plane, centered on (0,0,0), havingsubdivisions
. - drawFrustum(Graph) - Method in class nub.processing.Scene
-
Applies the
graph.eye()
transformation and then callsScene.drawFrustum(PGraphics, Graph)
on the sceneScene.context()
. - drawFrustum(PGraphics, Graph) - Static method in class nub.processing.Scene
-
Draws a representation of the viewing frustum onto
pGraphics
according tograph.eye()
andgraph._type
. - drawFrustum(PGraphics, PGraphics, Node, Graph.Type, float, float) - Static method in class nub.processing.Scene
-
Draws a representation of the
eyeBuffer
frustum ontopGraphics
according to frustum parameters:type
, eyeNode.worldMagnitude()
,zNear
andzFar
, while taking into account whether or not the scene isleftHanded
. - 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
ontopGraphics
in the XY plane, centered on (0,0,0), havingsubdivisions
. - 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
andnormal2
), along the positivez
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 ontopGraphics
. - 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
- 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
-
Calls
Node.enableHint(int)
followed byNode.configHint(int, Object...)
. - 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
andyaw
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()
andGraph.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 byGraph.center()
andGraph.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 byrectangle
(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
andcorner2
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 bycorner1
andcorner2
is entirely visible. - fitFOV() - Method in class nub.core.Graph
-
Changes the
Graph.eye()
Graph.fov()
so that the entire scene (defined byGraph.center()
andGraph.radius()
) is visible. - fitFOV(float) - Method in class nub.core.Graph
-
Rescales the
Graph.fov()
duration
milliseconds so that the ball defined bycenter
andradius
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
- fromEulerAngles(float, float, float) - Method in class nub.primitives.Quaternion
-
Converts Euler rotation angles
roll
,pitch
andyaw
, 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 theto
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
- 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
andheight
dimensions. - hudView(int, int) - Static method in class nub.primitives.Matrix
-
Returns a hud (heads-up-display) view according to the window
width
andheight
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 theGraph.eye()
ifnode
is null) interact gesture parser function set either withNode.setInteraction(Consumer)
orNode.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 quaternionQuaternion.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
ifnode
is ancestor ofthis
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 andfalse
otherwise. - isConeBackFacing(Vector, Vector[]) - Method in class nub.core.Graph
-
Returns
true
if the given cone is back-facing the eye andfalse
otherwise. - isConeBackFacing(Vector, Vector, float) - Method in class nub.core.Graph
-
Returns
true
if the given cone is back-facing the eye andfalse
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
- isOffscreen() - Method in class nub.core.Graph
-
Returns
true
if this scene is off-screen andfalse
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
ifpoint
is visible (i.e, lies within the eye bounds) andfalse
otherwise. - isReference(Node) - Method in class nub.core.Node
- isTagged(Graph) - Method in class nub.core.Node
-
Returns
true
if thenode
has been tagged by thegraph
at least once andfalse
otherwise. - isTagged(Node) - Method in class nub.core.Graph
-
Returns
true
if the node is currently being tagged andfalse
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 withtag
(which may be {code null}) andfalse
otherwise.
K
L
- lastUpdate() - Method in class nub.core.Graph
-
Max between
Node.lastUpdate()
andGraph._lastNonEyeUpdate()
. - 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
- localDisplacement(float) - Method in class nub.core.Node
-
Converts
scalar
displacement fromNode.reference()
to this node. - localDisplacement(Quaternion) - Method in class nub.core.Node
-
Converts
quaternion
displacement fromNode.reference()
to this node. - localDisplacement(Vector) - Method in class nub.core.Node
-
Converts
vector
displacement fromNode.reference()
to this node. - localLocation(Vector) - Method in class nub.core.Node
-
Converts
vector
location fromNode.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 ofpixel
. - location(Vector, Node) - Method in class nub.core.Node
-
Converts
vector
location fromnode
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
anddeltaY
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()
andNode.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 incolumnMajorOrder
or row major order (ifcolumnMajorOrder
isfalse
). - 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 tosensitivity
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 tosensitivity
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 intarget
. - 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
asa 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
andb
. - multiply(Quaternion, Vector) - Static method in class nub.primitives.Quaternion
-
Returns the image of
vector
by the rotationquaternion
. - 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 thetarget
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 quaternionq2
(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 benull
) which is usually set by ray casting (seeGraph.updateTag(String, int, int)
). - Node - Class in nub.core
-
A node encapsulates a 2D or 3D coordinate system, represented by a
Node.position()
, anNode.orientation()
andNode.magnitude()
defined respect to aNode.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
-
Calls
Node(Node, Vector, Quaternion, float)
and thenNode.setShape(Consumer)
. - 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
asNode.reference()
, havingposition
,orientation
andmagnitude
as theNode.position()
,Node.orientation()
andNode.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
asNode.reference()
andshape
, havingposition
,orientation
andmagnitude
as theNode.position()
,Node.orientation()
andNode.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 throughcenter
, 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
totip
. - 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 byorigin
anddirection
(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 bydirection
(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 bynormal
(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
- Quaternion(Vector, Vector) - Constructor for class nub.primitives.Quaternion
-
Constructs a quaternion that will rotate from the
from
direction to theto
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 toNode.reference()
. - referenceDisplacement(Quaternion) - Method in class nub.core.Node
-
Converts
quaternion
displacement from this node toNode.reference()
. - referenceDisplacement(Vector) - Method in class nub.core.Node
-
Converts
vector
displacement from this node toNode.reference()
. - referenceLocation(Vector) - Method in class nub.core.Node
-
Converts
vector
location from this node toNode.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
- render() - Method in class nub.core.Graph
-
Renders the node tree onto the
Graph.context()
from theGraph.eye()
viewpoint. - render(Node) - Method in class nub.core.Graph
-
Calls
Graph.openContext()
, then renders the nodesubtree
(or the whole tree whensubtree
isnull
) onto theGraph.context()
from theGraph.eye()
viewpoint, and callsGraph.closeContext()
. - rendered(Graph) - Method in class nub.core.Node
-
Tells whether the node was rendered in the last frame from
graph
after a call toGraph.render(Node)
is issued. - reset() - Method in class nub.core.Node
- 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
-
Same as calling
Node.resetRMRHUD()
andNode.resetIMRHUD()
. - 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 (seeNode.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
-
Calls
Node.resetIMRShape()
andNode.resetRMRShape()
. - resetTranslationFilter() - Method in class nub.core.Node
-
Nullifies the
Node.translationFilter()
. - 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)
andangle
. - 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 withinertia
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 itsQuaternion.axis()
becomeaxis
(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
- 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 theNode.reference()
and with an impulse defined withinertia
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
andsy
. - 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
andz
. - 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 setsGraph.leftHanded
totrue
. - 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 setsGraph.leftHanded
totrue
. - 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 fromnode
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()
andNode.worldMagnitude()
values from those of thenode
. - 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()
andGraph.zFar()
computations within theGraph.ballZNear()
andGraph.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 underpixel
on screen. - setCenter(Vector) - Method in class nub.core.Graph
-
Sets
Graph.center()
. - setCenterFromPixel(int, int) - Method in class nub.processing.Scene
-
The
Graph.center()
is set to the point located underpixel
on screen. - setEye(Node) - Method in class nub.core.Graph
-
Replaces the current
Graph.eye()
witheye
. - 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 tofov
(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 theGraph.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 (seeNode.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 (seeNode.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 aNode
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 theNode.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 withfloat
Quaternion parameters. - setOrientation(Quaternion) - Method in class nub.core.Node
-
Sets the node
Node.orientation()
, locally defined with respect to theNode.reference()
. - setPosition(float, float) - Method in class nub.core.Node
-
Same as
Node.setPosition(Vector)
, but withfloat
parameters. - setPosition(float, float, float) - Method in class nub.core.Node
-
Same as
Node.setPosition(Vector)
, but withfloat
parameters. - setPosition(Vector) - Method in class nub.core.Node
-
Caches the
Node.position()
of the node, locally defined with respect to theNode.reference()
. - setRadius(float) - Method in class nub.core.Graph
-
Sets
Graph.radius()
. - 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 itscacheRotationParams
. - setScalingFilter(BiFunction<Node, Object[], Float>, Object[]) - Method in class nub.core.Node
-
Sets the
Node.scalingFilter()
and itscacheScalingParams
. - setShape(Consumer<PGraphics>) - Method in class nub.core.Node
-
Sets the node immediate mode rendering (imr)
Node.SHAPE
procedure hint (seeNode.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 (seeNode.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 itscacheTranslationParams
. - 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 frommatrix
. - setUniform(PShader, String, Vector) - Static method in class nub.processing.Scene
-
Sets the
name
shader
uniform fromvector
. - 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()
becomesup
(defined in the world coordinate system). - setViewDirection(Vector) - Method in class nub.core.Graph
-
Rotates the eye so that its
Graph.viewDirection()
isdirection
(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 ofnode
. - setWorldOrientation(float, float, float, float) - Method in class nub.core.Node
-
Same as
Node.setWorldOrientation(Quaternion)
, but withfloat
parameters. - setWorldOrientation(Node) - Method in class nub.core.Node
-
Sets the
Node.worldOrientation()
to that ofnode
. - 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 withfloat
parameters. - setWorldPosition(float, float, float) - Method in class nub.core.Node
-
Same as
Node.setWorldPosition(Vector)
, but withfloat
parameters. - setWorldPosition(Node) - Method in class nub.core.Node
-
Sets the
Node.worldPosition()
to that ofnode
. - 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()
becomesaxis
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()
becomesaxis
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()
becomesaxis
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 ofGraph.width()
*Graph.height()
* 1 dimensions), andinertia
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
andb
, at timet
. - 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
andb
, at timet
, using tangentstgA
andtgB
. - squadTangent(Quaternion, Quaternion, Quaternion) - Static method in class nub.primitives.Quaternion
-
Returns a tangent quaternion for
center
, defined bybefore
andafter
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
- 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
betweenGraph.Type.PERSPECTIVE
andGraph.Type.ORTHOGRAPHIC
while trying to keep theGraph.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 returnstrue
if the ray picks thenode
andfalse
otherwise. - transform() - Method in class nub.core.MatrixHandler
-
Returns
MatrixHandler.projection()
timesMatrixHandler.modelview()
. - 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 withfloat
parameters. - translate(float, float, float) - Method in class nub.primitives.Matrix
-
Multiply this matrix by the translation matrix defined from
tx
,ty
andtz
. - 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 theNode.reference()
and with an impulse defined withinertia
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 toroll
,pitch
andyaw
radians, resp., and according toinertia
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 benull
) the node inGraph.nodes()
picked with ray-casting at pixelpixelX, pixelY
and returns it (seeGraph.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 benull
) the node innodeArray
picked with ray-casting at pixelpixelX, pixelY
and returns it (seeGraph.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 benull
) the node in thesubtree
(or the whole tree whensubtree
isnull
) picked with ray-casting at pixelpixelX, pixelY
and returns it (seeGraph.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
andorientation
. - 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 todelta
andinertia
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.
All Classes All Packages