GP.Attributes
Class Orientation

java.lang.Object
  |
  +--GP.Attributes.Orientation
Direct Known Subclasses:
GraphicToGraphic, Random, Shape

public class Orientation
extends java.lang.Object


Field Summary
static double DEGREES_TO_RADIANS
           
static double RADIANS_TO_DEGREES
           
 
Constructor Summary
Orientation()
          Constructs Orientation with default value of 0 degrees.
Orientation(double zAngle)
          Constructs Orientation with given angle.
Orientation(Orientation orientation)
          Constructs Orientation with identical values of given Orientation.
Orientation(Value zAngle)
          Constructs Orientation with angle of given Value.
 
Method Summary
 Orientation Copy()
           
 boolean equals(java.lang.Object other)
           
 double GetAngle()
           
 double GetCosine()
           
 double GetSine()
           
 double GetTangent()
           
static double toRadians(double angle)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEGREES_TO_RADIANS

public static final double DEGREES_TO_RADIANS

RADIANS_TO_DEGREES

public static final double RADIANS_TO_DEGREES
Constructor Detail

Orientation

public Orientation()
Constructs Orientation with default value of 0 degrees.

Orientation

public Orientation(double zAngle)
Constructs Orientation with given angle.
Parameters:
zAngle - angle in degrees around the z axis (pointing out of the screen)

Orientation

public Orientation(Orientation orientation)
Constructs Orientation with identical values of given Orientation.
Parameters:
orientation - another orientation

Orientation

public Orientation(Value zAngle)
Constructs Orientation with angle of given Value.
Parameters:
zAngle - angle in degrees around the z axis (pointing out of the screen)
Method Detail

Copy

public Orientation Copy()

GetAngle

public double GetAngle()
Returns:
angle in degrees around the z axis (pointing out of the screen)

GetCosine

public double GetCosine()

GetSine

public double GetSine()

GetTangent

public double GetTangent()

toRadians

public static double toRadians(double angle)

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object