Home > rc-js-util > Vec2 > subtract
Signature:
subtract<TResult extends TTypedArray = TArray>(_vec: IReadonlyVec2<TTypedArray>, _result?: Vec2<TResult>): Vec2<TResult>;
Parameter | Type | Description |
---|---|---|
_vec | IReadonlyVec2<TTypedArray> | |
_result | Vec2<TResult> | (Optional) |
Returns:
Vec2<TResult>