Difference between revisions of "Template:LSL Function/position"

From Second Life Wiki
Jump to navigation Jump to search
m (offset is so frequent it needs to be it's own template)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:
{{LSL Injection Test}}<noinclude>
This template is to be used to specify setup the description for position like parameters (offsets, positions, points, etc.).


TODO: add clamping flag and verbiage for out of region/range coordinates.
Right now it's pretty basic and easy to edit. I'm wondering if these functions should be in a position parameter specific category.


  {{#if:{{{region|}}}|
====TODO====
    {{#if:{{{local|}}}|
* add clamping flag and verbiage for out of region/range coordinates.
</noinclude>{{#if:


      {{#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]]}}
{{#if:{{{region|}}}|
  {{#if:{{{local|}}}|


      {{#vardefine:p_{{{1|}}}_hover|position in region or local coordinates}}
    {{#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]] depending upon the situation{{{desc|}}}}}


     |
     {{#vardefine:p_{{{1|}}}_hover|position in region or local coordinates depending upon the situation{{#if:{{{hover|}}}|{{{hover|}}}|{{{desc|}}}}}}}
      {{#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}}
      {{#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|&#32;(z component is ignored)}}{{{desc|}}}}}


        {{#vardefine:p_{{{1|}}}_hover|A point in region-local space}}
      {{#vardefine:p_{{{1|}}}_hover|A point in region-local space{{#ifeq:{{{region|}}}|noZ|&#32;(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}}}}
      {{#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|&#32;(z component is ignored)}}{{{desc|}}}}}


        {{#vardefine:p_{{{1|}}}_hover|position in region coordinates}}
      {{#vardefine:p_{{{1|}}}_hover|position in region coordinates{{#ifeq:{{{region|}}}|noZ|&#32;(z component is ignored)}}{{#if:{{{hover|}}}|{{{hover|}}}|{{{desc|}}}}}}}


      }}
     }}
     }}
   |
   }}
    {{#if:{{{local|}}}|
|
  {{#if:{{{local|}}}|


      {{#ifeq:{{{1|}}}|offset|
    {{#ifeq:{{{1|}}}|offset|


        {{#vardefine:p_{{{1|}}}_desc|offset relative to the object's center and expressed in [[Viewer coordinate frames#local|local coordinates]]}}
      {{LSL Function/offset|{{{1|}}}|local={{{local}}}}}


        {{#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|}}}_desc|position in [[Viewer coordinate frames#Local|local coordinates]]{{{desc|}}}}}


        {{#vardefine:p_{{{1|}}}_hover|position in local coordinates}}
      {{#vardefine:p_{{{1|}}}_hover|position in local coordinates{{#if:{{{hover|}}}|{{{hover|}}}|{{{desc|}}}}}}}


      }}
     }}
     }}
   }}
   }}

Latest revision as of 09:33, 18 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.