Aller au contenu

Vector2D

Ce contenu n’est pas encore disponible dans votre langue.

Functions

add()

function add(a, b): Vector2D

Adds two vector2D together.

Parameters

a: Vector2D

b: Vector2D

Returns

Vector2D

Defined in

tmp/commons/src/lib/datastructure.ts:18


angle()

function angle(a, b): number

Parameters

a: Vector2D

b: Vector2D

Returns

number

Defined in

tmp/commons/src/lib/datastructure.ts:52


cross()

function cross(a, b): number

Parameters

a: Vector2D

b: Vector2D

Returns

number

Defined in

tmp/commons/src/lib/datastructure.ts:50


distance()

function distance(a, b): number

Parameters

a: Vector2D

b: Vector2D

Returns

number

Defined in

tmp/commons/src/lib/datastructure.ts:46


divide()

function divide(a, b): Vector2D

Parameters

a: Vector2D

b: number

Returns

Vector2D

Defined in

tmp/commons/src/lib/datastructure.ts:30


dot()

function dot(a, b): number

Parameters

a: Vector2D

b: Vector2D

Returns

number

Defined in

tmp/commons/src/lib/datastructure.ts:48


length()

function length(a): number

Parameters

a: Vector2D

Returns

number

Defined in

tmp/commons/src/lib/datastructure.ts:42


multiply()

function multiply(a, b): Vector2D

Parameters

a: Vector2D

b: number

Returns

Vector2D

Defined in

tmp/commons/src/lib/datastructure.ts:24


normalize()

function normalize(a): Vector2D

Parameters

a: Vector2D

Returns

Vector2D

Defined in

tmp/commons/src/lib/datastructure.ts:44


rotate()

function rotate(a, angle): Vector2D

Parameters

a: Vector2D

angle: number

Returns

Vector2D

Defined in

tmp/commons/src/lib/datastructure.ts:54


subtract()

function subtract(a, b): Vector2D

Parameters

a: Vector2D

b: Vector2D

Returns

Vector2D

Defined in

tmp/commons/src/lib/datastructure.ts:36


Zero()

function Zero(): Vector2D

Returns

Vector2D

Defined in

tmp/commons/src/lib/datastructure.ts:11