Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Point (flash.geom.Point) | |||
Object
|
+-flash.geom.Point
public class Point
extends Object
The Point class represents a location in a two-dimensional coordinate system, where x represents the horizontal axis and y represents the vertical axis.
The following code creates a point at (0,0):
var myPoint:Point = new Point();
Availability: ActionScript 1.0; Flash Player 8
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
The length of the line segment from (0,0) to this point. |
|
|
|
The horizontal coordinate of the point. |
|
|
|
The vertical coordinate of the point. |
Properties inherited from class Object constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)
|
Signature |
Description |
|---|---|
|
Creates a new point. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
Adds the coordinates of another point to the coordinates of this point to create a new point. |
|
|
|
Creates a copy of this Point object. |
|
|
|
Returns the distance between pt1 and pt2. |
|
|
|
Determines whether two points are equal. |
|
|
|
interpolate |
Determines a point between two specified points. |
|
|
Scales the line segment between (0,0) and the current point to a set length. |
|
|
|
Offsets the Point object by the specified amount. |
|
|
|
Converts a pair of polar coordinates to a Cartesian point coordinate. |
|
|
|
Subtracts the coordinates of another point from the coordinates of this point to create a new point. |
|
|
|
Returns a string that contains the values of the x and y coordinates. |
Methods inherited from class Object
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002050.html