Line3D
From Crumbled World Wiki
Members
| type | variable | description |
|---|---|---|
| Vec3 | startPos | |
| Vec3 | endPos |
Constructor
| function | description |
|---|---|
| Line3D(Vec3 startPos, Vec3 endPos) | |
| Line3D(Vec3 startPos, Vec3 atVec, float length) | |
| Line3D() |
Functions
| return | function | description |
|---|---|---|
| float | length() | Returns the line length. |
| float | getDist() | Returns the line length^2. |
| Vec3 | getCenterPos() | Returns the line center position. |
| setLine(Vec3 startPos, Vec3 endPos) | set the line. | |
| setLine(Line3D line) | set the line. |