Difference between revisions of "HPL3/SOMA/Scripting/cVector2l"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
A two dimensional vector unit whose elements are stored as integers. | A two dimensional vector unit whose elements are stored as integers. | ||
+ | |||
+ | ==Constructors== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | ! Constructor !! Description | ||
+ | |- | ||
+ | | <syntaxhighlight lang="c++" inline>cVector2l(int, int)</syntaxhighlight> || Creates a <code>cVector2l</code> with the given element data. | ||
+ | |} | ||
==Fields== | ==Fields== | ||
Line 22: | Line 30: | ||
| <syntaxhighlight lang="c++" inline>int</syntaxhighlight> || SqrLength || || Returns the length-squared of the vector. | | <syntaxhighlight lang="c++" inline>int</syntaxhighlight> || SqrLength || || Returns the length-squared of the vector. | ||
|} | |} | ||
+ | |||
+ | {{ReferencesSection}} | ||
{{HPL3SOMAScriptingCategories}} | {{HPL3SOMAScriptingCategories}} | ||
__FORCETOC__ | __FORCETOC__ |
Latest revision as of 15:23, 6 August 2020
A two dimensional vector unit whose elements are stored as integers.
Contents
Constructors
Constructor | Description |
---|---|
cVector2l(int, int) |
Creates a cVector2l with the given element data.
|
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. |
References
- HPL3/SOMA/Scripting/cConfigFile (← links)
- HPL3/SOMA/Scripting/cImGui (← links)
- HPL3/SOMA/Scripting/cLensFlare (← links)
- HPL3/SOMA/Scripting/cLuxGuiHandler (← links)
- HPL3/SOMA/Scripting/cLuxMap (← links)
- HPL3/SOMA/Scripting/cRendererCallbackFunctions (← links)
- HPL3/SOMA/Scripting/cTerrain (← links)
- HPL3/SOMA/Scripting/cViewport (← links)
- HPL3/SOMA/Scripting/iGamepad (← links)
- HPL3/SOMA/Scripting/iLowLevelGraphics (← links)
- HPL3/SOMA/Scripting/iMouse (← links)
- HPL3/SOMA/Scripting/Scripting Api (← links)
- HPL3/SOMA/Scripting/Scripting Api/cGraphics (← links)
- HPL3/SOMA/Scripting/Scripting Api/cLux (← links)
- HPL3/SOMA/Scripting/Scripting Api/cMath (← links)
- HPL3/SOMA/Scripting/Scripting Api/cString (← links)
- HPL3/SOMA/Scripting/Scripting Api/cSystem (← links)
- HPL3/SOMA/Scripting/Scripting Api/Constants (← links)