Home > rc-js-util > Range2d > getRangeTransform
Creates a transform matrix that maps values in this range onto _toRange
.
Signature:
getRangeTransform<TResult extends TTypedArray = TArray>(_toRange: IReadonlyRange2d<TTypedArray>, _result?: IReadonlyMat3<TResult>): Mat3<TResult>;
Parameter | Type | Description |
---|---|---|
_toRange | IReadonlyRange2d<TTypedArray> | |
_result | IReadonlyMat3<TResult> | (Optional) |
Returns:
Mat3<TResult>