Category:LSL Vector/fr

From Second Life Wiki
< Category:LSL Vector
Revision as of 06:16, 3 December 2007 by Catherine Pfeffer (talk | contribs) (Prepared for translation by Ol Obscure)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Vector

A vector is a data type 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 can be used to hold the following:

  • Position: x, y and z are in metres.
  • Velocity: x, y and z represent speeds.
  • Colour: Red is x, Green is y and Blue is z.

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

Pages in category "LSL Vector/fr"

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