HPL3/SOMA/Scripting/cVector3l

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting
Revision as of 02:38, 4 August 2020 by Abion47 (talk | contribs) (Created page with "A three dimensional vector unit whose elements are stored as integers. ==Fields== {| class="wikitable" ! Field Name !! Type !! Description |- | x || <syntaxhighlight lang="c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A three dimensional vector unit whose elements are stored as integers.

Fields

Field Name Type Description
x int The integer x value of the vector.
y int The integer y value of the vector.
z int The integer z value of the vector.

Functions

Return Type Function Name Parameters Description
int GetElement uint64 alIdx Gets the value at the given index. (Indices 0, 1, and 2 are equal to x, y, and z, respectively.)
void SetElement uint64 alIdx,
int
Sets the value at the given index to the given value. (Indices 0, 1, and 2 are equal to x, y, and z, respectively.)
int SqrLength Returns the length-squared of this vector.