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