Difference between revisions of "HPL3/SOMA/Scripting/cVector2l"

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting
Jump to navigation Jump to search
(Created page with "A two dimensional vector unit whose elements are stored as integers. ==Fields== {| class="wikitable" ! Field Name !! Type !! Description |- | x || <syntaxhighlight lang="c++...")
 
Line 23: Line 23:
 
|}
 
|}
  
[[Category:HPL3]]
+
{{HPL3SOMAScriptingCategories}}
[[Category:SOMA]]
 
[[Category:HPL3 Scripting]]
 
[[Category:HPL3 Classes]]
 
[[Category:HPL3 Classes]]
 
 
__FORCETOC__
 
__FORCETOC__

Revision as of 01:36, 4 August 2020

A two 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.

Functions

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