js-util

Home > rc-js-util > Range1d > getRangeTransform

Range1d.getRangeTransform() method

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>;

Parameters

Parameter Type Description
_toRange Readonly<Range1d<TTypedArray>>  
_result Mat2<TResult> (Optional)

Returns:

Mat2<TResult>