Point3d
Kind of class: | class |
---|---|
Inherits from: | Point < CoreObject |
Version: | 03/21/08 |
Author: | Aaron Clinger |
Classpath: | org.casalib.math.geom.Point3d |
File last modified: | Monday, 01 December 2008, 13:34:40 |
Stores location of a point in a three-dimensional coordinate system, where x represents the horizontal axis, y represents the vertical axis, z represents the axis that is vertically perpendicular to the xy axis or depth.
Summary
Constructor
- Point3d (x:Number, y:Number, z:Number)
- Creates 3d point object.
Class methods
Instance methods
- getZ : Number
- setZ (z:Number) : Void
- Sets the Z coordinate.
- offset (x:Number, y:Number, z:Number) : Void
- Offsets the Point object by the specified amount.
- equals (pointObject:Point3d) : Boolean
- Determines whether the point specified in the pointObject parameter is equal to this point object.
- clone : Point3d
- destroy : Void
Constructor
Point3d
function Point3d (
x:Number,
y:Number,
z:Number)
Creates 3d point object.
Parameters:
x:
The horizontal coordinate of the point.
y:
The vertical coordinate of the point.
z:
The depth coordinate of the point.
Class methods
Instance methods
equals
Determines whether the point specified in the
pointObject
parameter is equal to this point object. Parameters:
pointObject:
A defined Point3d object.
Returns:
- Returns
true
if shape's location is identical; otherwisefalse
.
getZ
function getZ (
) : Number
Returns:
- The Z position.
offset
function offset (
x:Number,
y:Number,
z:Number) : Void
Offsets the Point object by the specified amount.
Parameters:
x:
The amount by which to offset the horizontal coordinate.
y:
The amount by which to offset the vertical coordinate.
z:
The amount by which to offset the depth coordinate.
setZ
function setZ (
z:Number) : Void
Sets the Z coordinate.
Parameters:
z:
The depth coordinate of the point.