Category:LSL Vector/direction: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
Created page with "{{LSL Subtype Category|direction|base=vector|description=A direction vector simply points in a specific direction. For example <1,0,0> points East.}} To get a direction vecto..."
 
Gwyneth Llewelyn (talk | contribs)
m Replaced <source> with <syntaxhighlight>
 
Line 3: Line 3:
To get a direction vector, simply take the desired target position and subtract the starting position.
To get a direction vector, simply take the desired target position and subtract the starting position.


<source lang="lsl2">
<syntaxhighlight lang="lsl2">
vector start;
vector start;
vector end;
vector end;


vector direction = end - start;
vector direction = end - start;
</source>
</syntaxhighlight>

Latest revision as of 14:21, 28 January 2023

Pages in category "LSL Vector/direction"

The following 2 pages are in this category, out of 2 total.