gnu.gnustep.base
Class NSPoint
java.lang.Object
|
+--gnu.gnustep.base.NSPoint
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class NSPoint
- extends java.lang.Object
- implements java.lang.Cloneable
This class wraps the Objective-C struct NSPoint.
Instances of this class in Java contain two public fields: x, y.
You are required to set and read these variables directly.
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ZeroPoint
public static NSPoint ZeroPoint
x
public float x
y
public float y
NSPoint
public NSPoint()
NSPoint
public NSPoint(float anX,
float anY)
NSPoint
public NSPoint(java.lang.String string)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object otherObject)
- Overrides:
equals in class java.lang.Object
isEqualToPoint
public boolean isEqualToPoint(NSPoint aPoint)
distanceToPoint
public float distanceToPoint(NSPoint aPoint)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object