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
  • distance (firstPoint:Point3d) : Number
    • Determines the distance between the first and second points in 3D space.
Class methods inherited from Point
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
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 (

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.