All Packages Class Hierarchy This Package Previous Next Index
Class com.micronova.math.CurvePoint
java.lang.Object
|
+----com.micronova.math.CurvePoint
- public class CurvePoint
- extends Object
- implements Comparable, Codable
CurvePoint represents a point on a Curve. CurvePoints are compared using their x values; i.e., two CurvePoints p and q are equal if and only if p.x == q.x, and p is 'smaller' than q if and only if p.x < q.x.
- Version:
- 1.01
- Author:
- Makoto Nagata, MicroNova
- See Also:
- Curve, SegmentedCurve
-
x
- x value of this CurvePoint.
-
y
- y value of this CurvePoint.
-
CurvePoint()
- Constructs a new CurvePoint (0, 0).
-
CurvePoint(double, double)
- Construcs a new CurvePoint (x, y).
-
compareTo(Object)
- Defines the sorting ordering; for two CurvePoints p and q,
p is 'smaller' than q if and only if p.x < q.x
-
decode(Decoder)
- Decodes the instance.
-
describeClassInfo(ClassInfo)
- Describes the class information.
-
encode(Encoder)
- Encodes the instance.
-
equals(Object)
- Returns true if object is an instance of CurvePoint and this.x is equal to object.x.
-
finishDecoding()
- Finishes decoding.
-
toString()
- Returns a string serialization.
x
public double x
- x value of this CurvePoint.
y
public double y
- y value of this CurvePoint.
CurvePoint
public CurvePoint(double x,
double y)
- Construcs a new CurvePoint (x, y).
CurvePoint
public CurvePoint()
- Constructs a new CurvePoint (0, 0).
equals
public final boolean equals(Object object)
- Returns true if object is an instance of CurvePoint and this.x is equal to object.x.
- Overrides:
- equals in class Object
compareTo
public final int compareTo(Object object)
- Defines the sorting ordering; for two CurvePoints p and q,
p is 'smaller' than q if and only if p.x < q.x
describeClassInfo
public void describeClassInfo(ClassInfo info)
- Describes the class information.
encode
public void encode(Encoder encoder) throws CodingException
- Encodes the instance.
decode
public void decode(Decoder decoder) throws CodingException
- Decodes the instance.
finishDecoding
public void finishDecoding()
- Finishes decoding.
toString
public String toString()
- Returns a string serialization.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index