Pt3D

| HOME | BACK |

Overview

Pt3D is an object which consists of three double precision values.  It is used to store x, y, and z coordinate.  Pt3D can also be used as a general data structure, though.

 

Member data

Name Data type Meaning
x double x coordinate
y double y coordinate
z double z coordinate

 

Operator

no operator provided

 

Construction function

{Pt3D} ret  =  PT3D([{double} argm1, {double} argm2, {double} argm3])

argm1 = x coordinate           (default = 0)

argm2 = y coordinate           (default = 0)

argm3 = z coordinate           (default = 0)

Example:

->pt_1 = Pt3D() a deafult Pt2D object (x = 0, y = 0, z = 0)

->pt_1 = Pt3D(52.3, 65.2, 75.8)

an Pt2D object (x = 52.3, y = 65.2, z = 75.8)

 

Lfunction

object.X()     =  {double} left-value

object.Y()     =  {double} left-value

object.Z()     =  {double} left-value

Example:

->pt_1.x() = 50.09

->pt_1.y() = 60.98

 

Class function

AZI DIST DIST2LINE  DIST2PLANE  
  INIT IS_NA       
MATRIX  MIDPOINT PABCD    
SHIFT X  Y Z  

 


| HOME | BACK |