Packagesekati.geom
Classpublic class Point3D
InheritancePoint3D Inheritance Point Inheritance CoreObject

Point3D extends sekati.geom.Point with a Z-axis.


Example
var p:Point3D = new sekati.geom.Point3D(10,10,50);



Public Properties
 PropertyDefined by
 Inheritedx : Number
Point
 Inheritedy : Number
Point
  z : Number
Point3D
Public Methods
 MethodDefined by
  
Point3D(nX:Number = 0, nY:Number = 0, nZ:Number = 0)
Constructor
Point3D
 Inherited
Clone this Point.
Point
  
Clone this Point3D.
Point3D
 Inherited
destroy():void
Clean and destroy object instance contents/self for garbage collection.
CoreObject
 Inherited
displace(nX:Number, nY:Number):Point
Returns a new point based on this point with x and y offset values
Point
  
displace3D(nX:Number, nY:Number, nZ: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 distance between two points
Point
  
get Z distance between two points
Point3D
 Inherited
isEqual(p:Point):Boolean
check if two points match
Point
  
isEqual3D(p:Point3D):Boolean
check if two 3D points match
Point3D
 Inherited
offset(x:Number, y:Number):void
Offset the Point object by a specified amount.
Point
  
offset3D(x:Number, y:Number, z:Number):void
Offset the Point3D object by a specified amount.
Point3D
 Inherited
rotate(p:Point, angle:Number):void
Rotate this Point around another Point by the specified angle.
Point
 Inherited
toString():String
Return the Fully Qualified Class Name string representation of the instance object via sekati.reflect.Stringifier.
CoreObject
Property detail
zproperty
public var z:Number
Constructor detail
Point3D()constructor
public function Point3D(nX:Number = 0, nY:Number = 0, nZ:Number = 0)

Constructor

Parameters
nX:Number (default = 0) — (Number)
 
nY:Number (default = 0) — (Number)
 
nZ:Number (default = 0) — (Number)
Method detail
clone3D()method
public function clone3D():Point3D

Clone this Point3D.

Returns
Point3D — Point3D
displace3D()method 
public function displace3D(nX:Number, nY:Number, nZ:Number):Point3D

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

Parameters
nX:Number — (Number)
 
nY:Number — (Number)
 
nZ:Number — (Number)

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

get Z distance between two points

Parameters
p:Point3D — (Point3D)

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

check if two 3D points match

Parameters
p:Point3D — (Point3D)

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

Offset the Point3D object by a specified amount.

Parameters
x:Number — (Number) horizontal offset
 
y:Number — (Number) vertical offset
 
z:Number — (Number) z-axis offset