Packagenet.guttershark.util.geom
Classpublic class Point3D
InheritancePoint3D Inheritance Point

The Point3D class plots x,y,and z in 3D space.



Public Properties
 PropertyDefined by
 Inheritedx : Number
The x coordinate.
Point
 Inheritedy : Number
The y coordinate.
Point
  z : Number
The z index.
Point3D
Protected Properties
 PropertyDefined by
 Inheritedmu : MathUtils
MathUtils
Point
Public Methods
 MethodDefined by
  
Point3D(x:Number = 0, y:Number = 0, z:Number = 0)
Constructor for Point3D instances.
Point3D
 Inherited
Clone this Point.
Point
  
Clone this Point3D.
Point3D
 Inherited
displace(x:Number, y:Number):Point
Returns a new point based on this point with x and y offset values.
Point
  
displace3D(x:Number, y:Number, z:Number):Point3D
Returns a new 3D point based on this point with x and y offset values.
Point3D
 Inherited
Algo to give the grid based distance when only vertical & horizontal moves are allowed.
Point
 Inherited
Algo to give the grid based distance when diagonal moves are allowed by finding math.min of the differences, we're figuring out how many moves can be diagonal ones.
Point
 Inherited
getAngle(p:Point):Number
Get the angle degree between this point and a second point.
Point
 Inherited
getDistance(p:Point):Number
Get the distance between two points.
Point
  
Get Z distance between two points.
Point3D
 Inherited
isEqual(p:Point):Boolean
Check if two Points are equal.
Point
  
isEqual3D(p:Point3D):Boolean
Check if two Point3D instances are equal.
Point3D
 Inherited
offset(x:Number, y:Number):void
Offset this Point object by a specified amount.
Point
  
offset3D(x:Number, y:Number, z:Number):void
Offset the Point3D object by the specified amounts.
Point3D
 Inherited
rotate(p:Point, angle:Number):void
Rotate this Point around another Point by the specified angle.
Point
Property detail
zproperty
public var z:Number

The z index.

Constructor detail
Point3D()constructor
public function Point3D(x:Number = 0, y:Number = 0, z:Number = 0)

Constructor for Point3D instances.

Parameters
x:Number (default = 0) — (Number)
 
y:Number (default = 0) — (Number)
 
z:Number (default = 0) — (Number)
Method detail
clone3D()method
public function clone3D():Point3D

Clone this Point3D.

Returns
Point3D
displace3D()method 
public function displace3D(x:Number, y:Number, z:Number):Point3D

Returns a new 3D point based on this point with x and y offset values.

Parameters
x:Number — The amount to displace x by.
 
y:Number — The amount to displace y by.
 
z:Number — The amount to displaze z by.

Returns
Point3D
getZDistance()method 
public function getZDistance(p:Point3D):Number

Get Z distance between two points.

Parameters
p:Point3D — The Point3D to test against.

Returns
Number
isEqual3D()method 
public function isEqual3D(p:Point3D):Boolean

Check if two Point3D instances are equal.

Parameters
p:Point3D — The Point3D to test against.

Returns
Boolean
offset3D()method 
public function offset3D(x:Number, y:Number, z:Number):void

Offset the Point3D object by the specified amounts.

Parameters
x:Number — The amount to offset x by.
 
y:Number — The amount to offset y by.
 
z:Number — The amount to offset z by.