axis()
Creates an axis from a direction vector.
Returns: Axis
Signatures
axis(axis: AxisLike): Axis
Creates an axis from a direction vector.
| Parameter | Type | Description |
|---|---|---|
axis | AxisLike | The direction vector or standard axis |
axis(axis: AxisLike, options: AxisTransformOptions): Axis
Creates an axis from a direction vector with transform options.
| Parameter | Type | Description |
|---|---|---|
axis | AxisLike | The direction vector or standard axis |
options | AxisTransformOptions | Transform options (offset, flip, etc.) |
axis(source: SceneObject): Axis
Creates an axis from a scene object's edge.
| Parameter | Type | Description |
|---|---|---|
source | SceneObject | The scene object whose edge defines the axis |
axis(source: SceneObject, options: AxisTransformOptions): Axis
Creates an axis from a scene object's edge with transform options.
| Parameter | Type | Description |
|---|---|---|
source | SceneObject | The scene object whose edge defines the axis |
options | AxisTransformOptions | Transform options (offset, flip, etc.) |
axis(axis: Axis, options: AxisTransformOptions): Axis
Transforms an existing axis with options.
| Parameter | Type | Description |
|---|---|---|
axis | Axis | The existing axis to transform |
options | AxisTransformOptions | Transform options (offset, flip, etc.) |
axis(a1: AxisLike, a2: AxisLike, options?: AxisTransformOptions): Axis
Creates an axis midway between two direction vectors.
| Parameter | Type | Description |
|---|---|---|
a1 | AxisLike | The first direction vector or standard axis |
a2 | AxisLike | The second direction vector or standard axis |
options | AxisTransformOptions | Transform options (offset, flip, etc.) (optional) |
axis(a1: Axis, a2: Axis, options?: AxisTransformOptions): Axis
Creates an axis midway between two existing Axis objects.
| Parameter | Type | Description |
|---|---|---|
a1 | Axis | The first Axis object |
a2 | Axis | The second Axis object |
options | AxisTransformOptions | Transform options (offset, flip, etc.) (optional) |