Home > rc-js-util > Range1d
Vec2 representing a 1d range.
Signature:
export declare abstract class Range1d<TArray extends TTypedArray> extends Vec2<TArray>
Extends: Vec2
See static properties for constructors. Instances are not an extension of this class, but of the static members.
Property | Modifiers | Type | Description |
---|---|---|---|
“0” | number | min | |
“1” | number | max | |
constructor | IRange1dCtor<TArray> | ||
constructors | static |
Map<TTypedArrayCtor, Function> | |
f32 | static |
IRange1dCtor<Float32Array> | |
f64 | static |
IRange1dCtor<Float64Array> | |
i16 | static |
IRange1dCtor<Int16Array> | |
i32 | static |
IRange1dCtor<Int32Array> | |
i8 | static |
IRange1dCtor<Int8Array> | |
TTypeGuardRange1d | true | ||
u16 | static |
IRange1dCtor<Uint16Array> | |
u32 | static |
IRange1dCtor<Uint32Array> | |
u8 | static |
IRange1dCtor<Uint8Array> | |
u8c | static |
IRange1dCtor<Uint8ClampedArray> |
Method | Modifiers | Description |
---|---|---|
bound1d(_boundTo) | Bound this range to the argument. | |
castToBaseType() | Although the typed array tuples extend a typed array, they are not structurally compatible. This function returns the argument passed without modification but cast as the underlying storage type, e.g. Float32Array. | |
copyFromBuffer(_memoryDataView, _pointer, _littleEndian) | If endianness is not supplied the platform’s endianness will be used. | |
copyToBuffer(_memoryDataView, _pointer, _littleEndian) | If endianness is not supplied the platform’s endianness will be used. | |
extendRange(_value, _writeTo) | ||
getCenter() | ||
getCtor(ctor) | static |
|
getMax() | ||
getMin() | ||
getRange() | ||
getRangeTransform(_toRange, _result) | Creates a transform matrix that maps values in this range onto _toRange . |
|
isValueInRange1d(_value) | ||
mat2Multiply(_mat, _writeTo) | ||
scaleRelativeTo(_scalingFactor, _relativeTo, _result) | Scales the range relative to a point (may not be outside of the range). | |
setMax(_value) | ||
setMin(_value) | ||
translate1d(_dv) | Shifts the range by dv. | |
unionRange(_range, _writeTo) |