True once this Component has been destroyed.
Don't use this Component if this is true
.
Protected
dirtyUnique ID of this Component.
Gets the 3D Real-space origin, in Real-space units, at which this View's World-space coordinate origin [0,0,0]
sits.
Sets the Real-space 3D origin, in Real-space units, at which this View's World-space coordinate origin [0,0,0]
sits.
Gets the number of Real-space units represented by each unit of the View's World-space coordinate system.
Sets the number of Real-space units represented by each unit of the View's World-space coordinate system.
For example, if Metrics.units is constants!MetersUnit, and there are ten meters per World-space coordinate system unit, then scale
would have a value of 10.0
.
Gets the View's Real-space unit type.
Sets the View's Real-space unit type.
Accepted values are constants!MetersUnit, constants!CentimetersUnit, constants!MillimetersUnit, constants!YardsUnit, constants!FeetUnit and constants!InchesUnit.
Gets info about the supported Real-space unit types.
With constants indicating each unit type, the info will be:
{
[MetersUnit]: {
abbrev: "m"
},
[CentimetersUnit]: {
abbrev: "cm"
},
[MillimetersUnit]: {
abbrev: "mm"
},
[YardsUnit]: {
abbrev: "yd"
},
[FeetUnit]: {
abbrev: "ft"
},
[InchesUnit]: {
abbrev: "in"
}
}
Protected
cleanProtected
cleanProtected
errorProtected
logConverts a 3D position from Real-space to World-space.
This is equivalent to worldPos = (worldPos - #origin) / #scale
.
Real-space 3D position.
Optional
worldPos: FloatArrayParam = ...Destination for World-space 3D position.
World-space 3D position.
Protected
setProtected
warnConverts a 3D position from World-space to Real-space.
This is equivalent to realPos = #origin + (worldPos * #scale)
.
World-space 3D position, in World coordinate system units.
Optional
realPos: FloatArrayParam = ...Destination for Real-space 3D position.
Real-space 3D position, in units indicated by Metrics#units.
Emits an event when the Component has been destroyed.
Readonly
onEmits an event each time Metrics.origin changes.
Readonly
onEmits an event each time Metrics.scale changes.
Readonly
onEmits an event each time Metrics.units changes.
Configures its View's measurement unit and mapping between the Real-space and World-space 3D Cartesian coordinate systems.
1.0
by default.[0,0,0]
by default.Usage