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

Variable Index

 o x
x value of this CurvePoint.
 o y
y value of this CurvePoint.

Constructor Index

 o CurvePoint()
Constructs a new CurvePoint (0, 0).
 o CurvePoint(double, double)
Construcs a new CurvePoint (x, y).

Method Index

 o 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
 o decode(Decoder)
Decodes the instance.
 o describeClassInfo(ClassInfo)
Describes the class information.
 o encode(Encoder)
Encodes the instance.
 o equals(Object)
Returns true if object is an instance of CurvePoint and this.x is equal to object.x.
 o finishDecoding()
Finishes decoding.
 o toString()
Returns a string serialization.

Variables

 o x
 public double x
x value of this CurvePoint.

 o y
 public double y
y value of this CurvePoint.

Constructors

 o CurvePoint
 public CurvePoint(double x,
                   double y)
Construcs a new CurvePoint (x, y).

 o CurvePoint
 public CurvePoint()
Constructs a new CurvePoint (0, 0).

Methods

 o 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
 o 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

 o describeClassInfo
 public void describeClassInfo(ClassInfo info)
Describes the class information.

 o encode
 public void encode(Encoder encoder) throws CodingException
Encodes the instance.

 o decode
 public void decode(Decoder decoder) throws CodingException
Decodes the instance.

 o finishDecoding
 public void finishDecoding()
Finishes decoding.

 o toString
 public String toString()
Returns a string serialization.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index