All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----acg.stuttgart.rich.auxiliary.OvalAuxiliary
Summary |
public class OvalAuxiliary extends java.lang.Object { // Fields 1 protected static Tmatrix tmatrix; // Constructors 1 public OvalAuxiliary(); // Methods 3 public static void convert(Vector3D, Vector3D, Vector3D, float, float, Vector3D, Vector3D, float, float, float); public static void fixAxes(Vector3D, Vector3D); public static void reorient(Vector3D, Vector3D, Vector3D, float, float, Vector3D, int, float, float, float); }
The static OvalAuxiliary class allows an oval (defined by a location, a major, and a minor axis) to be specified as a transform of a unit circle located at the origin in the X,Y plane.
Fields |
· tmatrix | Summary | Top |
protected static Tmatrix tmatrix
Constructors |
· OvalAuxiliary | Summary | Top |
public OvalAuxiliary()
Default constructor
Methods |
· convert | Summary | Top |
public static void convert(Vector3D center, Vector3D axis1, Vector3D axis2, float xscale, float yscale, Vector3D normal, Vector3D axis1direction, float tx, float ty, float tz)
The convert static method allows an oval to be specified as a series of transformations of a "canonical" oval -- a circle of radius one located in the X,Y plane centered at the origin. The transformations are applied in the order of their parameters in the method call -- a scale, followed by a rotation, followed by a translation. The first three parameters,
center
,center
axis1, andaxis2
are references to Vector3D instances. These instances are "filled in" byconvert
, and can then be passed to the ellipse constructor. The scale parameters have the expected effect. Thenormal
in combination with theaxis1direction
parameters define a transformed oval orientation in space. The normal specifies the normal to the plane of the transformed oval, and the normal and axis1direction vector define a plane which, when intersected with the oval plane, defines the transformed direction of the first major axis (axis1
· fixAxes | Summary | Top |
public static void fixAxes(Vector3D axis1, Vector3D axis2)
The fixAxes method will repair non-orthogonal axes in a way that attempts to approximate the original curve. This will not work well if the original axes too skewed.
· reorient | Summary | Top |
public static void reorient(Vector3D center, Vector3D axis1, Vector3D axis2, float axis1scale, float axis2scale, Vector3D rotationAxis, int twist, float tx, float ty, float tz)
The reorient method will reorient, rescale, and reposition an existing oval.
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7