public final class EndPoint extends java.lang.Object implements Struct<EndPoint>, java.io.Serializable
| Constructor and Description |
|---|
EndPoint() |
EndPoint(double v)
Construct a
EndPoint from a real parameter. |
EndPoint(Vector3 point)
Construct a
EndPoint from a Cartesian point. |
| Modifier and Type | Method and Description |
|---|---|
EndPoint |
clone()
Clone current instance
|
void |
copyFrom(EndPoint src)
Copy internal state from argument t
|
boolean |
equals(java.lang.Object obj) |
static EndPoint |
fromDegree(double degree)
Create an end point measured in degree.
|
static EndPoint |
fromRadian(double degree)
Create an end point measured in radian.
|
Vector3 |
getAsPoint()
Gets the end point as Cartesian point, or thrown an exception.
|
double |
getAsValue()
Gets the end point as a real parameter, or throw an exception.
|
int |
hashCode() |
boolean |
isCartesianPoint()
Is the end point a Cartesian point?
|
java.lang.String |
toString()
Returns a string representation of the current end point.
|
public EndPoint(Vector3 point)
EndPoint from a Cartesian point.point - Point to constructpublic EndPoint(double v)
EndPoint from a real parameter.v - The real number parameter for constructing an end pointpublic EndPoint()
public static EndPoint fromDegree(double degree)
degree - The value in degreepublic static EndPoint fromRadian(double degree)
degree - The value in radianpublic boolean isCartesianPoint()
public Vector3 getAsPoint()
public double getAsValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic void copyFrom(EndPoint src)
Structpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object