js-util

Home > rc-js-util > Range2d > getRangeTransform

Range2d.getRangeTransform() method

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

Parameters

Parameter Type Description
_toRange IReadonlyRange2d<TTypedArray>  
_result IReadonlyMat3<TResult> (Optional)

Returns:

Mat3<TResult>