|
Shapes 3D
3.0
|

Public Member Functions | |
| GraphAxes (float neg_length, float length, float arm_radius) | |
Public Member Functions inherited from shapes3d.ShapeGroup | |
| ShapeGroup | addChild (Shape3D...sub_shapes) |
| Shape3D[] | children () |
| Shape3D | child (int n) |
| ShapeGroup | visible (boolean visible) |
| ShapeGroup | moveTo (PVector pos) |
| ShapeGroup | moveTo (float x, float y, float z) |
| ShapeGroup | moveTo (float[] xyz) |
| PVector | getRotVec () |
| PVector | getRotVec (PVector target) |
| float[] | getRotArray () |
| float[] | getRotArray (float[] target) |
| ShapeGroup | rotateTo (PVector angles) |
| ShapeGroup | rotateTo (float[] angles) |
| ShapeGroup | rotateTo (float x, float y, float z) |
| ShapeGroup | rotateToX (float x) |
| ShapeGroup | rotateToY (float y) |
| ShapeGroup | rotateToZ (float z) |
| ShapeGroup | rotateBy (float x, float y, float z) |
| ShapeGroup | rotateBy (float[] angle) |
| ShapeGroup | rotateBy (PVector angles) |
| ShapeGroup | rotateByX (float x) |
| ShapeGroup | rotateByY (float y) |
| ShapeGroup | rotateByZ (float z) |
| void | draw (PGraphics pg) |
Additional Inherited Members | |
Protected Attributes inherited from shapes3d.ShapeGroup | |
| PVector | pos = new PVector(0,0,0) |
| PVector | rot = new PVector(0,0,0) |
| LinkedList< Shape3D > | children = new LinkedList<Shape3D>() |
| PGraphics | on_canvas |
Creates a 3D set of XYZ axis to show the current orientation of the 3D graphics context. Each axis has its own colour X - red, Y - green and Z - blue.
| shapes3d.GraphAxes.GraphAxes | ( | float | neg_length, |
| float | length, | ||
| float | arm_radius | ||
| ) |
Create the axis
| neg_length | distance in the negative direction for axis |
| length | distance in the positive direction for axis |
| arm_radius | the radius of the axis arm. |