# Point3d

Kind of class: class Point < CoreObject 02/22/07 Aaron Clinger org.casaframework.math.geom.Point3d Sunday, 19 August 2007, 13:43:31
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 axes or depth.

## Summary

Constructor
Instance properties
Instance properties inherited from Point
Instance properties inherited from CoreObject
Class methods
Class methods inherited from Point
Instance methods
Instance methods inherited from Point
Instance methods inherited from CoreObject

## 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

### distance

static function distance (firstPoint:Point3d, secondPoint:Point3d) : Number
Determines the distance between the first and second points in 3D space.
Parameters:
firstPoint :
The first point.
secondPoint:
The second point.

## Instance methods

### clone

function clone () : Point3d
Returns:
A new point object with the same values as this point.

### destroy

function destroy () : Void
Overrides:

### equals

function equals (pointObject:Point3d) : Boolean
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; otherwise `false`.

### 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.