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

From Frictional Wiki
< HPL3‎ | SOMA‎ | Scripting
Jump to navigation Jump to search
(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...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
A three dimensional vector unit whose elements are stored as integers.
 
A three dimensional vector unit whose elements are stored as integers.
 +
 +
==Constructors==
 +
 +
{| class="wikitable"
 +
! Constructor !! Description
 +
|-
 +
| <syntaxhighlight lang="c++" inline>cVector3l(int, int, int)</syntaxhighlight> || Creates a <code>cVector3l</code> with the given element data.
 +
|}
  
 
==Fields==
 
==Fields==
Line 24: Line 32:
 
| <syntaxhighlight lang="c++" inline>int</syntaxhighlight> || SqrLength ||  || Returns the length-squared of this vector.  
 
| <syntaxhighlight lang="c++" inline>int</syntaxhighlight> || SqrLength ||  || Returns the length-squared of this vector.  
 
|}
 
|}
 +
 +
{{ReferencesSection}}
  
 
{{HPL3SOMAScriptingCategories}}
 
{{HPL3SOMAScriptingCategories}}
 
__FORCETOC__
 
__FORCETOC__

Latest revision as of 15:23, 6 August 2020

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

Constructors

Constructor Description
cVector3l(int, int, int) Creates a cVector3l 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.
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.

References

See all references...