Function: effectiveTransform()
ts
function effectiveTransform(transform, origin): object;Experimental
The transform actually applied in shaders to RTC-encoded positions: world = local * scale + offset, where offset = transform.offset + origin * transform.scale is computed in float64 so precision is lost only after the (small) subtraction.
Parameters
| Parameter | Type |
|---|---|
transform | DataTransform |
origin | readonly [number, number, number] |
Returns
object
| Name | Type |
|---|---|
offset | Vec3 |
scale | Vec3 |