public final class PointOnCurve extends Object implements IEquatable<PointOnCurve>, ImmutableValueType
Curve.| Constructor and Description |
|---|
PointOnCurve()
Initializes a new instance.
|
PointOnCurve(double fraction,
double arcDistance,
Cartesian point)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
static boolean |
equals(PointOnCurve left,
PointOnCurve right)
Returns
true if the two instances are exactly equal. |
boolean |
equalsType(PointOnCurve other)
Indicates whether another instance of this type is exactly equal to this instance.
|
double |
getArcDistance()
Gets the actual distance along the curve at which this point occurs.
|
double |
getFraction()
Gets the fractional distance along the curve at which this point occurs.
|
Cartesian |
getPoint()
Gets the coordinates of the point on the curve.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
static boolean |
notEquals(PointOnCurve left,
PointOnCurve right)
Returns
true if the two instances are not exactly equal. |
public PointOnCurve()
public PointOnCurve(double fraction,
double arcDistance,
@Nonnull
Cartesian point)
fraction - The fractional distance along the curve at which this point occurs.arcDistance - The real distance along the curve at which this point occurs.point - The location of the point.public final double getFraction()
public final double getArcDistance()
AngleSubtended (get) of the curve.public boolean equals(Object obj)
equals in class Objectobj - The object to compare to this instance.true if obj is an instance of this type and represents the same value as this instance; otherwise false.Object.hashCode(),
HashMappublic final boolean equalsType(@Nonnull PointOnCurve other)
equalsType in interface IEquatable<PointOnCurve>other - The instance to compare to this instance.true if other represents the same value as this instance; otherwise false.public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)public static boolean equals(@Nonnull PointOnCurve left, @Nonnull PointOnCurve right)
true if the two instances are exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left represents the same value as right; otherwise false.public static boolean notEquals(@Nonnull PointOnCurve left, @Nonnull PointOnCurve right)
true if the two instances are not exactly equal.left - The instance to compare to right.right - The instance to compare to left.true if left does not represent the same value as right; otherwise false.