initFromRange MethodStatic
Initialize transforms that map each direction of a box (axis aligned) to [0,1].
initFromRange(min: Point3d, max: Point3d, npcToGlobal?: Transform, globalToNpc?: Transform): void
| Parameter | Type | Description |
|---|---|---|
| min | Point3d | the "000" corner of the box |
| max | Point3d | the "111" corner of the box |
| npcToGlobal | Transform | (object created by caller, re-initialized) transform that carries 01 coordinates into the min,max box. |
| globalToNpc | Transform | (object created by caller, re-initialized) transform that carries world coordinates into 01 |
Defined in
Last Updated: 08 January, 2020