Skip to content

[mxcad_3d API documentation](../README. md)/Mx3dGeAxis

Class: Mx3dGeAxis ​

Representing an axis

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dGeAxis()

Default Construction

Overrides ​

Mx3dGeObject.constructor

• new Mx3dGeAxis(theLoc, theDir)

Constructor function

Parameters ​

NameTypeDescription
TheLocUniPointOrigin of the axis
The Direction of the AxisUniDir

Overrides ​

Mx3dGeObject.constructor

Methods ​

Direction ​

▸ Direction(): Mx3dGeDir

Obtain the direction of the axis

Returns ​

Mx3dGeDir

direction


Location ​

▸ Location(): Mx3dGePoint

Obtain the origin of the axis

Returns ​

Mx3dGePoint

origin


SetDirection ​

▸ SetDirection(theDir): void

Set the direction of the axis

Parameters ​

NameTypeDescription
TheDir[Mx3dGeDir] (Mx3dGeDir. md)Direction

Returns ​

void


SetLocation ​

▸ SetLocation(theLoc): void

Set the origin of the axis

Parameters ​

NameTypeDescription
TheLocUniPointOrigin

Returns ​

void