- Inherits from:
- NSPoint : Object
- Package:
- com.apple.yellow.foundation
An NSMutablePoint is an object representing a point that can be changed in a coordinate system. The main purpose for NSMutablePoints is to provide a way for methods to return coordinate values in an "out" parameter. The client creates and passes in one or more NSMutablePoints to a method and gets back changed objects when the method returns. NSMutablePoints are also useful for performance reasons; instead of creating multiple NSPoints in a loop, you can create just one NSMutablePoint and reuse it.
- Constructors
- NSMutablePoint
- Accessing and setting coordinate values
- setX
- setY
- x
- y
public NSMutablePoint()
public NSMutablePoint(
float x,
float y)
public NSMutablePoint(NSPoint aPoint)
public NSMutablePoint(java.awt.Point javaPoint)
public Object clone()
public void setX(float newX)
See Also: x
public void setY(float newY)
See Also: y
public float x()
Returns the x-coordinate of the receiver. NSMutablePoint overrides this method because implementation details make that necessary.
See Also: setX
public float y()
Returns the y-coordinate of the receiver. NSMutablePoint overrides this method because implementation details make that necessary.
See Also: setY