# Point3d

Kind of class: | class |
---|---|

Inherits from: | Point < CoreObject |

Version: | 02/22/07 |

Author: | Aaron Clinger |

Classpath: | org.casaframework.math.geom.Point3d |

File last modified: | Wednesday, 07 March 2007, 14:18:37 |

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

## Instance methods

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