|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspice.basic.Ellipse
public class Ellipse
Class Ellipse represents ellipses in 3-dimensional space and supports geometric operations using ellipses.
Ellipses have a center and two orthogonal semi-axis vectors. The longer of these is called the "semi-major axis"; the shorter is called the "semi-minor axis."
Ellipses are allowed to be degenerate: one or both semi-axes may be the zero vector.
Ellipse-plane intersection computations are supported by
class EllipsePlaneIntercept
.
Constructor Summary | |
---|---|
Ellipse()
No-arguments constructor. |
|
Ellipse(double[] elArray)
Create a Ellipse from a center and two generating vectors that have been packed into a double array, in that order. |
|
Ellipse(Ellipse el)
Copy constructor: this constructor creates a deep copy. |
|
Ellipse(Vector3 center,
Vector3 gv1,
Vector3 gv2)
Create a Ellipse from a center and two generating vectors. |
Method Summary | |
---|---|
Vector3 |
getCenter()
Retrieve the center from an Ellipse. |
Vector3 |
getSemiMajorAxis()
Retrieve the semi-major axis from an Ellipse. |
Vector3 |
getSemiMinorAxis()
Retrieve the semi-minor axis from an Ellipse. |
Ellipse |
project(Plane plane)
Project an Ellipse orthogonally onto a Plane. |
double[] |
toArray()
Return the components of this ellipse in a double array. |
java.lang.String |
toString()
Display an Ellipse as a string; override Object's toString() method. |
static Vector3[] |
unpack(double[] elArray)
Unpack a double array into a center and generating vectors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Ellipse(Ellipse el)
public Ellipse()
public Ellipse(Vector3 center, Vector3 gv1, Vector3 gv2) throws SpiceException
x = center + ( s * gv1 ) + ( t * gv2 )where `s' and `t' are scalars.
SpiceException
public Ellipse(double[] elArray) throws SpiceException
SpiceException
Method Detail |
---|
public Vector3 getCenter()
public Vector3 getSemiMajorAxis()
public Vector3 getSemiMinorAxis()
public double[] toArray()
public Ellipse project(Plane plane) throws SpiceException
SpiceException
public java.lang.String toString()
toString
in class java.lang.Object
public static Vector3[] unpack(double[] elArray)
|
JNISpice version 2.0.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |