Skip to content

@orillusion/core


Class: ValueOp<T>

Defined in: src/math/enum/T/ValueOp.ts:7

Generic arithmetic helpers for curve value types (number, Vector2/3/4, Quaternion).

Type Parameters

T

T extends CurveValueType

Constructors

Constructor

new ValueOp<T>(): ValueOp<T>

Returns

ValueOp<T>

Methods

sub()

static sub<T>(v1, v2): number | Vector3 | Quaternion | Vector2 | Vector4

Defined in: src/math/enum/T/ValueOp.ts:14

Subtract one curve value from another, dispatching on the runtime value type.

Type Parameters

T

T extends CurveValueType

Parameters

v1

T

minuend

v2

T

subtrahend

Returns

number | Vector3 | Quaternion | Vector2 | Vector4

the component-wise difference of the same type

Released under the MIT License