All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.Point

java.lang.Object
   |
   +----com.apple.alpha.core.Point

public class Point
extends Object
This class is used to represent a two-dimensional point.


Variable Index

 o x
The x-coordinate of the point.
 o y
The y-coordinate of the point.
 o ZeroPoint
A Point defining the origin.

Constructor Index

 o Point()
Create a Point whose coordinates are (0, 0).
 o Point(float, float)
Create a Point with the given coordinates.

Method Index

 o toString()
Return a textual representation of the receiver.

Variables

 o x
 public float x
The x-coordinate of the point.

 o y
 public float y
The y-coordinate of the point.

 o ZeroPoint
 public static final Point ZeroPoint
A Point defining the origin.

Constructors

 o Point
 public Point()
Create a Point whose coordinates are (0, 0).

 o Point
 public Point(float u,
              float v)
Create a Point with the given coordinates.

Parameters:
u - the x-coordinate of the new point.
v - the y-coordinate of the new point.

Methods

 o toString
 public String toString()
Return a textual representation of the receiver. A point with coordinates (3, -7) will be represented as the string "{x = 3; y = -7}"

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index