editor › Globals › ArrowGeometryGenerator
Class: ArrowGeometryGenerator
Hierarchy
- ArrowGeometryGenerator
Index
Methods
Methods
Static Private _makeCorner
▸ _makeCorner(start: any, startDirection: any, endDirection: any): Vector3[]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Nestings/ArrowGeometryGenerator.ts:153
Go in a quarter circle from start into directions start and end direction
Parameters:
| Name | Type | Description |
|---|---|---|
start |
any | point to start the corner from |
startDirection |
any | start direction |
endDirection |
any | end direction |
Returns: Vector3[]
- points of the corner
Static Private _makeTip
▸ _makeTip(center: any, endJointNormal: any): Vector3[]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Nestings/ArrowGeometryGenerator.ts:170
Generate an arrow tip.
Parameters:
| Name | Type | Description |
|---|---|---|
center |
any | central position of the tip |
endJointNormal |
any | normal of the joint the tip is pointing at |
Returns: Vector3[]
Static getArrowPoints
▸ getArrowPoints(startJointCenter: Vector3, startJointNormal: Vector3, endJointCenter: Vector3, endJointNormal: Vector3, twist: boolean): Promise‹Vector3[][]›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Nestings/ArrowGeometryGenerator.ts:8
Parameters:
| Name | Type | Default |
|---|---|---|
startJointCenter |
Vector3 | - |
startJointNormal |
Vector3 | - |
endJointCenter |
Vector3 | - |
endJointNormal |
Vector3 | - |
twist |
boolean | false |
Returns: Promise‹Vector3[][]›