Access keys

# Point

Kind of class: class CoreObject 11/10/06 Aaron Clinger org.casaframework.math.geom.Point Monday, 08 January 2007, 09:57:51
Stores location of a point in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.

## Summary

Constructor
Instance properties
Instance properties inherited from CoreObject
Class methods
Instance methods
Instance methods inherited from CoreObject

## Constructor

### Point

function Point (
x:Number, y:Number)
Creates point object.
Parameters:
x:
The horizontal coordinate of the point.
y:
The vertical coordinate of the point.

## Class methods

### angle

static function angle (
firstPoint:Point, secondPoint:Point) : Number
Determines the angle/degree between the first and second point.
Parameters:
firstPoint:
The first point.@parem secondPoint: The second point.

### distance

static function distance (
firstPoint:Point, secondPoint:Point) : Number
Determines the distance between the first and second points.
Parameters:
firstPoint:
The first point.@parem secondPoint: The second point.

## Instance methods

### clone

function clone (
) : Point
Returns:
A new point object with the same values as this point.

### destroy

function destroy (
) : Void
Removes internal variables, intervals, enter frames, internal MovieClips and event observers to allow the object to be garbage collected.

Always call `destroy()` before deleting/removing object instance.
#

### equals

function equals (
pointObject:Point) : Boolean
Determines whether the point specified in the `pointObject` parameter is equal to this point object.
Parameters:
pointObject:
A defined Point object.
Returns:
Returns `true` if shape's location is identical; otherwise `false`.

### getX

function getX (
) : Number
Returns:
The left X position.
#
Specified by:

### getY

function getY (
) : Number
Returns:
The top Y position.
#
Specified by:

### offset

function offset (
x:Number, y:Number) : Void
Offsets the Point object by the specified amount.
@parem x: The amount by which to offset the horizontal coordinate.
Parameters:
y:
The amount by which to offset the vertical coordinate.

### setX

function setX (
x:Number) : Void
Sets the X coordinate.
#
Parameters:
x:
The horizontal coordinate of the point.
#
Specified by:

### setY

function setY (
y:Number) : Void
Sets the Y coordinate.
#
Parameters:
y:
The vertical coordinate of the point.
#
Specified by: