Package | sekati.geom |
Class | public class Point3D |
Inheritance | Point3D Point CoreObject |
Method | Defined by | ||
---|---|---|---|
Point3D(nX:Number = 0, nY:Number = 0, nZ:Number = 0)
Constructor
| Point3D | ||
Clone this Point.
| Point | ||
Clone this Point3D.
| Point3D | ||
destroy():void
Clean and destroy object instance contents/self for garbage collection.
| CoreObject | ||
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 | ||
getAbsoluteGridDistance(p:Point):Number
Algo to give the grid based distance when only vertical & horizontal moves are allowed
| Point | ||
getAbsoluteGridDistanceAllowDiagonals(p:Point):Number
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 | ||
Get the angle degree between this point and a second point.
| Point | ||
getDistance(p:Point):Number
get distance between two points
| Point | ||
getZDistance(p:Point3D):Number
get Z distance between two points
| Point3D | ||
check if two points match
| Point | ||
check if two 3D points match
| Point3D | ||
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 | ||
Rotate this Point around another Point by the specified angle.
| Point | ||
toString():String
Return the Fully Qualified Class Name string representation of
the instance object via
sekati.reflect.Stringifier . | CoreObject |
z | property |
public var z:Number
Point3D | () | constructor |
public function Point3D(nX:Number = 0, nY:Number = 0, nZ:Number = 0)
Constructor
ParametersnX:Number (default = 0 ) — (Number)
|
|
nY:Number (default = 0 ) — (Number)
|
|
nZ:Number (default = 0 ) — (Number)
|
clone3D | () | method |
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
ParametersnX:Number — (Number)
|
|
nY:Number — (Number)
|
|
nZ:Number — (Number)
|
Point3D —
Point3D
|
getZDistance | () | method |
public function getZDistance(p:Point3D):Number
get Z distance between two points
Parametersp:Point3D — (Point3D)
|
Number — Number
|
isEqual3D | () | method |
public function isEqual3D(p:Point3D):Boolean
check if two 3D points match
Parametersp:Point3D — (Point3D)
|
Boolean — Boolean
|
offset3D | () | method |
public function offset3D(x:Number, y:Number, z:Number):void
Offset the Point3D object by a specified amount.
Parametersx:Number — (Number) horizontal offset
|
|
y:Number — (Number) vertical offset
|
|
z:Number — (Number) z-axis offset
|