API referenceGeometry
three
Import from bear/geometry/three.
Functions
matrixFromFrame()
function matrixFromFrame(__namedParameters): Matrix4;Defined in: bear/geometry/three.ts:29
Parameters
| Parameter | Type |
|---|---|
__namedParameters | Frame3 |
Returns
Matrix4
vectorize2()
function vectorize2<T>(...args): { [K in string | number | symbol]: Vector2 };Defined in: bear/geometry/three.ts:21
Converts our POJO Vec2 object(s) into a new three.js Vector2 No need to clone the vector that's returned as it's a new vector.
Type Parameters
| Type Parameter |
|---|
T extends readonly Vec2[] |
Parameters
| Parameter | Type |
|---|---|
...args | T |
Returns
{ [K in string | number | symbol]: Vector2 }
vectorize3()
function vectorize3<T>(...args): { [K in string | number | symbol]: Vector3 };Defined in: bear/geometry/three.ts:9
Converts our POJO Vec3 object(s) into a new three.js Vector3 No need to clone the vector that's returned as it's a new vector.
Type Parameters
| Type Parameter |
|---|
T extends readonly Vec3[] |
Parameters
| Parameter | Type |
|---|---|
...args | T |
Returns
{ [K in string | number | symbol]: Vector3 }