CoordinateXYZ Class

A Coordinate is a Point3d with supporting methods from the GeometryQuery abstraction.

Extends

Methods

Name Description
clone(): undefined | GeometryQuery return a clone  
cloneTransformed(transform: Transform): undefined | GeometryQuery return a transformed clone.  
dispatchToGeometryHandler(handler: GeometryHandler): any Second step of double dispatch: call handler.handleCoordinateXYZ(this)  
extendRange(rangeToExtend: Range3d, transform?: Transform): void extend rangeToExtend to include this point (optionally transformed)  
isAlmostEqual(other: GeometryQuery): boolean test for exact structure and nearly identical geometry.  
isSameGeometryClass(other: GeometryQuery): boolean test if (other instanceof Coordinate).  
range(): Range3d return the range of the point  
tryTransformInPlace(transform: Transform): boolean Apply transform to the Coordinate's point.  
create(point: Point3d): CoordinateXYZ Static Create a new CoordinateXYZ containing a CLONE of point  
createXYZ(x: number = 0, y: number = 0, z: number = 0): CoordinateXYZ Static Create a new CoordinateXYZ  

Inherited methods

Name Inherited from Description
tryTranslateInPlace(dx: number, dy: number = 0.0, dz: number = 0.0): boolean GeometryQuery try to move the geometry by dx,dy,dz
areAlmostEqual(a: undefined | GeometryQuery, b: undefined | GeometryQuery): boolean Static GeometryQuery apply instance method isAlmostEqual if both are defined.

Properties

Name Type Description
geometryCategory Readonly "point" String name for interface properties  
point Accessor ReadOnly Point3d Return a (REFERENCE TO) the coordinate data.  

Inherited properties

Name Type Inherited from Description
children Accessor ReadOnly undefined | GeometryQuery[] GeometryQuery return GeometryQuery children for recursive queries.

* leaf classes do not need to implement.

Defined in

Last Updated: 20 June, 2023