Difference between revisions of "Category:LSL Vector"

From Second Life Wiki
Jump to navigation Jump to search
m (spelling)
Line 10: Line 10:
* Cross Product, Operator "%"
* Cross Product, Operator "%"


A vector can be multiplied or devided by a [[Quaternion]] to rotate it.
A vector can be multiplied or divided by a [[Quaternion]] to rotate it.


===Example===
===Example===

Revision as of 07:47, 23 March 2007

Vector

A datatype that contains a set of three float values. Each element can be accessed individually by appending .x, .y, or .z to the variable name.

Vectors support the following operations:

  • Addition, Operator "+"
  • Subtraction, Operator "-"
  • Multiplication (Dot Product), Operator "*"
  • Cross Product, Operator "%"

A vector can be multiplied or divided by a Quaternion to rotate it.

Example

vector test=<1.0, 2.0, 3.0>;
llOwnerSay((string)test.z); // Outputs 3.0

Subcategories

This category has the following 2 subcategories, out of 2 total.

Pages in category "LSL Vector"

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