Shapes 3D  3.0
 All Classes Functions Variables Pages
shapes3d.GraphAxes Class Reference
Inheritance diagram for shapes3d.GraphAxes:

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< Shape3Dchildren = new LinkedList<Shape3D>()
 
PGraphics on_canvas
 

Detailed Description

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.

Author
Peter Lager

Constructor & Destructor Documentation

shapes3d.GraphAxes.GraphAxes ( float  neg_length,
float  length,
float  arm_radius 
)

Create the axis

Parameters
neg_lengthdistance in the negative direction for axis
lengthdistance in the positive direction for axis
arm_radiusthe radius of the axis arm.

The documentation for this class was generated from the following file: