Difference between revisions of "Template:LSL Function/position"
Jump to navigation
Jump to search
m |
m |
||
Line 18: | Line 18: | ||
{{#ifeq:{{{1|}}}|point| | {{#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{{{desc|}}}}} | {{#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{{#ifeq:{{{region|}}}|noZ| (z component is ignored)}}{{{desc|}}}}} | ||
{{#vardefine:p_{{{1|}}}_hover|A point in region-local space{{#if:{{{hover|}}}|{{{hover|}}}|{{{desc|}}}}}}} | {{#vardefine:p_{{{1|}}}_hover|A point in region-local space{{#ifeq:{{{region|}}}|noZ| (z component is ignored)}}{{#if:{{{hover|}}}|{{{hover|}}}|{{{desc|}}}}}}} | ||
| | | | ||
{{#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}}{{{desc|}}}}} | {{#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}}{{#ifeq:{{{region|}}}|noZ| (z component is ignored)}}{{{desc|}}}}} | ||
{{#vardefine:p_{{{1|}}}_hover|position in region coordinates{{#if:{{{hover|}}}|{{{hover|}}}|{{{desc|}}}}}}} | {{#vardefine:p_{{{1|}}}_hover|position in region coordinates{{#ifeq:{{{region|}}}|noZ| (z component is ignored)}}{{#if:{{{hover|}}}|{{{hover|}}}|{{{desc|}}}}}}} | ||
}} | }} |
Revision as of 12:06, 10 June 2012
This template is to be used to specify setup the description for position like parameters (offsets, positions, points, etc.).
Right now it's pretty basic and easy to edit. I'm wondering if these functions should be in a position parameter specific category.
TODO
- add clamping flag and verbiage for out of region/range coordinates.