| Package | net.guttershark.util.geom |
| Class | public class Point3D |
| Inheritance | Point3D Point |
| Property | Defined by | ||
|---|---|---|---|
![]() | x : Number
The x coordinate.
| Point | |
![]() | y : Number
The y coordinate.
| Point | |
| z : Number
The z index.
| Point3D | ||
| Method | Defined by | ||
|---|---|---|---|
|
Point3D(x:Number = 0, y:Number = 0, z:Number = 0)
Constructor for Point3D instances.
| Point3D | ||
![]() |
Clone this Point.
| Point | |
|
Clone this Point3D.
| Point3D | ||
![]() |
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 | ||
![]() |
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 the distance between two points.
| Point | |
|
getZDistance(p:Point3D):Number
Get Z distance between two points.
| Point3D | ||
![]() |
Check if two Points are equal.
| Point | |
|
Check if two Point3D instances are equal.
| Point3D | ||
![]() |
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 | ||
![]() |
Rotate this Point around another Point by the specified angle.
| Point | |
| z | property |
public var z:NumberThe z index.
| Point3D | () | constructor |
public function Point3D(x:Number = 0, y:Number = 0, z:Number = 0)Constructor for Point3D instances.
Parametersx:Number (default = 0) — (Number)
|
|
y:Number (default = 0) — (Number)
|
|
z:Number (default = 0) — (Number)
|
| clone3D | () | method |
| displace3D | () | method |
public function displace3D(x:Number, y:Number, z:Number):Point3DReturns a new 3D point based on this point with x and y offset values.
Parametersx:Number — The amount to displace x by.
|
|
y:Number — The amount to displace y by.
|
|
z:Number — The amount to displaze z by.
|
Point3D |
| getZDistance | () | method |
public function getZDistance(p:Point3D):NumberGet Z distance between two points.
Parametersp:Point3D — The Point3D to test against.
|
Number |
| isEqual3D | () | method |
public function isEqual3D(p:Point3D):BooleanCheck if two Point3D instances are equal.
Parametersp:Point3D — The Point3D to test against.
|
Boolean |
| offset3D | () | method |
public function offset3D(x:Number, y:Number, z:Number):voidOffset the Point3D object by the specified amounts.
Parametersx:Number — The amount to offset x by.
|
|
y:Number — The amount to offset y by.
|
|
z:Number — The amount to offset z by.
|