[mxcad_3d API documentation](../README. md)/Mx3dGeAxis
Class: Mx3dGeAxis
Representing an axis
Hierarchy
↳
Mx3dGeAxis
Table of contents
Constructors
Methods
Constructors
constructor
• new Mx3dGeAxis()
Default Construction
Overrides
Mx3dGeObject.constructor
• new Mx3dGeAxis(theLoc, theDir)
Constructor function
Parameters
| Name | Type | Description |
|---|---|---|
| TheLoc | UniPoint | Origin of the axis |
| The Direction of the Axis | UniDir |
Overrides
Mx3dGeObject.constructor
Methods
Direction
▸ Direction(): Mx3dGeDir
Obtain the direction of the axis
Returns
direction
Location
▸ Location(): Mx3dGePoint
Obtain the origin of the axis
Returns
origin
SetDirection
▸ SetDirection(theDir): void
Set the direction of the axis
Parameters
| Name | Type | Description |
|---|---|---|
| TheDir | [Mx3dGeDir] (Mx3dGeDir. md) | Direction |
Returns
void
SetLocation
▸ SetLocation(theLoc): void
Set the origin of the axis
Parameters
| Name | Type | Description |
|---|---|---|
| TheLoc | UniPoint | Origin |
Returns
void