GP.Attributes
Class Orientation
java.lang.Object
|
+--GP.Attributes.Orientation
- Direct Known Subclasses:
- GraphicToGraphic, Random, Shape
- public class Orientation
- extends java.lang.Object
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. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEGREES_TO_RADIANS
public static final double DEGREES_TO_RADIANS
RADIANS_TO_DEGREES
public static final double RADIANS_TO_DEGREES
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)
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