Skip to content

Documentation / @ripl/3d / vec2Sub

Function: vec2Sub() ​

vec2Sub(a, b): Vector2

Defined in: 3d/src/math/vector2.ts:15

Returns the component-wise difference of two vectors.

Parameters ​

ParameterType
aVector2
bVector2

Returns ​

Vector2