jET
1.0beta1


org.jet.sce
Class BasePoint

java.lang.Object
  |
  +--org.jet.sce.BasePoint

public class BasePoint
extends java.lang.Object

Base point is the editor handler. New tracks and switches are appended to it.


Constructor Summary
BasePoint(javax.vecmath.Point3d p, double alpha, double beta)
          Constructs new base point with specified coordinates and zeroed vector.
BasePoint(javax.vecmath.Point3d p, javax.vecmath.Vector3d v)
          Constructs new base point with specified coordinates.
 
Method Summary
 boolean equals(java.lang.Object o)
          Equality test.
 double getAlpha()
          Computes an angle between vector and Z axis.
 double getBeta()
          Computes an angle between vector and XZ plate.
 javax.vecmath.Point3d getPoint()
          Gets the point.
 javax.vecmath.Vector3d getVector()
          Gets the vector.
 java.lang.String toString()
          Returns string representation of object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasePoint

public BasePoint(javax.vecmath.Point3d p,
                 javax.vecmath.Vector3d v)
Constructs new base point with specified coordinates.

Parameters:
p - 3D point.
v - 3D vector.

BasePoint

public BasePoint(javax.vecmath.Point3d p,
                 double alpha,
                 double beta)
Constructs new base point with specified coordinates and zeroed vector.

Parameters:
p - 3D point.
alpha - Angle between vector and Z axis.
beta - Angle between vector and XZ plate. The angle must be in range .
Method Detail

getPoint

public javax.vecmath.Point3d getPoint()
Gets the point.


getVector

public javax.vecmath.Vector3d getVector()
Gets the vector.


getAlpha

public double getAlpha()
Computes an angle between vector and Z axis.

Returns:
Angle in radians in range .

getBeta

public double getBeta()
Computes an angle between vector and XZ plate.

Returns:
Angle in radians.

toString

public java.lang.String toString()
Returns string representation of object.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Equality test.

Overrides:
equals in class java.lang.Object
Parameters:
o - Object to compare with.
Returns:
True when base points equal.

jET
1.0beta1