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.


Field Summary
 float x
           
 float y
           
static NSPoint ZeroPoint
           
 
Constructor Summary
NSPoint()
           
NSPoint(float anX, float anY)
           
NSPoint(java.lang.String string)
           
 
Method Summary
 java.lang.Object clone()
           
 float distanceToPoint(NSPoint aPoint)
           
 boolean equals(java.lang.Object otherObject)
           
 int hashCode()
           
 boolean isEqualToPoint(NSPoint aPoint)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ZeroPoint

public static NSPoint ZeroPoint

x

public float x

y

public float y
Constructor Detail

NSPoint

public NSPoint()

NSPoint

public NSPoint(float anX,
               float anY)

NSPoint

public NSPoint(java.lang.String string)
Method Detail

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