0.2.36 • Published 9 months ago

@immugio/three-math-extensions v0.2.36

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Set of utilities for 2d and 3d math built on top of three.js

Build

@immugio/three-math-extensions / Exports

@immugio/three-math-extensions

Table of contents

Classes

Interfaces

Variables

Functions

Variables

HalfPI

Const HalfPI: number

Defined in

src/MathConstants.ts:2


TwoPI

Const TwoPI: number

Defined in

src/MathConstants.ts:1


directions

Const directions: Object

Type declaration

NameType
DownVec3
EastVec3
NorthVec3
SouthVec3
UpVec3
WestVec3

Defined in

src/directions.ts:3


directions2d

Const directions2d: Object

Type declaration

NameType
DownVec2
LeftVec2
RightVec2
UpVec2

Defined in

src/directions2d.ts:3

Functions

isContinuousClosedShape

isContinuousClosedShape\<T>(lines, tolerance?): boolean

Type parameters

NameType
Textends Line3D | Line2D

Parameters

NameTypeDefault value
linesT[]undefined
tolerancenumber0

Returns

boolean

Defined in

src/isContinuousClosedShape.ts:4


isPointInPolygon

isPointInPolygon(p, point): boolean

Parameters

NameType
pPoint2[]
pointPoint2

Returns

boolean

Defined in

src/isPointInPolygon.ts:3


normalizeAngleDegrees

normalizeAngleDegrees(angle): number

Normalizes an angle in degrees to the range 0, 360.

Parameters

NameTypeDescription
anglenumberin degrees

Returns

number

Defined in

src/normalizeAngleDegrees.ts:5


normalizeAngleRadians

normalizeAngleRadians(angle): number

Normalize an angle in radians to the range of 0 to 2π.

Parameters

NameTypeDescription
anglenumberin radians

Returns

number

Defined in

src/normalizeAngleRadians.ts:7

0.2.36

9 months ago

0.2.35

9 months ago

0.2.34

9 months ago

0.2.33

10 months ago

0.2.32

10 months ago

0.2.27

11 months ago

0.2.26

11 months ago

0.2.30

11 months ago

0.2.31

11 months ago

0.2.29

11 months ago

0.2.28

11 months ago

0.2.25

1 year ago

0.2.24

1 year ago

0.2.23

1 year ago

0.2.22

1 year ago

0.2.21

1 year ago

0.2.20

1 year ago

0.2.19

1 year ago

0.2.18

1 year ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.17

3 years ago

16.15.10

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago