@immugio/three-math-extensions / Exports
• Const HalfPI: number
• Const TwoPI: number
• Const directions: Object
| Name | Type |
|---|---|
Down |
Vec3 |
East |
Vec3 |
North |
Vec3 |
South |
Vec3 |
Up |
Vec3 |
West |
Vec3 |
• Const directions2d: Object
| Name | Type |
|---|---|
Down |
Vec2 |
Left |
Vec2 |
Right |
Vec2 |
Up |
Vec2 |
▸ isContinuousClosedShape<T>(lines, tolerance?): boolean
| Name | Type |
|---|---|
T |
extends Line3D | Line2D |
| Name | Type | Default value |
|---|---|---|
lines |
T[] |
undefined |
tolerance |
number |
0 |
boolean
src/isContinuousClosedShape.ts:4
▸ isPointInPolygon(p, point): boolean
| Name | Type |
|---|---|
p |
Point2[] |
point |
Point2 |
boolean
▸ normalizeAngleDegrees(angle): number
Normalizes an angle in degrees to the range [0, 360].
| Name | Type | Description |
|---|---|---|
angle |
number |
in degrees |
number
src/normalizeAngleDegrees.ts:5
▸ normalizeAngleRadians(angle): number
Normalize an angle in radians to the range of 0 to 2π.
| Name | Type | Description |
|---|---|---|
angle |
number |
in radians |
number