Difference between revisions of "Template:LSL Function/position"
Jump to navigation
Jump to search
m (oops) |
|||
Line 3: | Line 3: | ||
TODO: add clamping flag and verbiage for out of region/range coordinates. | TODO: add clamping flag and verbiage for out of region/range coordinates. | ||
{{#if:{{{region|}}}| | |||
{{#if:{{{local|}}}| | |||
{{#vardefine:p_{{{1|}}}_desc|position in {{HoverLink|Viewer coordinate frames#Region|Origin is the origin of the region which {{String|owns}} the object.|region}} or [[Viewer coordinate frames#local|local coordinates]]}} | |||
{{#vardefine:p_{{{1|}}}_hover|position in region or local coordinates}} | |||
| | |||
{{#ifeq:{{{1|}}}|point| | |||
{{#vardefine:p_{{{1|}}}_desc|A point in {{HoverLink|Viewer coordinate frames#Region|Origin is the origin of the region which {{String|owns}} the object.|region-local}} space}} | |||
{{#vardefine:p_{{{1|}}}_hover|A point in region-local space}} | |||
| | |||
{{#vardefine:p_{{{1|}}}_desc|position in {{HoverLink|Viewer coordinate frames#Region|Origin is the origin of the region which {{String|owns}} the object.|region coordinates}}}} | |||
{{#vardefine:p_{{{1|}}}_hover|position in region coordinates}} | |||
}} | }} | ||
| | }} | ||
| | |||
{{#if:{{{local|}}}| | |||
{{#ifeq:{{{1|}}}|offset| | |||
{{#vardefine:p_{{{1|}}}_desc|offset relative to the object's center and expressed in [[Viewer coordinate frames#local|local coordinates]]}} | |||
{{#vardefine:p_{{{1|}}}_hover|offset relative to the object's center and expressed in local coordinates}} | |||
| | |||
{{#vardefine:p_{{{1|}}}_desc|position in [[Viewer coordinate frames#local|local coordinates]]}} | |||
{{#vardefine:p_{{{1|}}}_hover|position in local coordinates}} | |||
}} | }} | ||
}} | }} |