|
hpl3:community:scripting:classes:cvector2l [2015/11/05 11:53] abion47 created |
hpl3:community:scripting:classes:cvector2l [2015/11/06 03:35] (current) abion47 |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ^ Field Name ^ Type ^ Description ^ | ^ Field Name ^ Type ^ Description ^ | ||
| - | | x | int | | | + | | x | int | The integer x value of the vector. | |
| - | | y | int | | | + | | y | int | The integer y value of the vector. | |
| ====Functions==== | ====Functions==== | ||
| ^ Return Type ^ Function Name ^ Parameters ^ Description ^ | ^ Return Type ^ Function Name ^ Parameters ^ Description ^ | ||
| - | | int | GetElement | uint64 alIdx, \\ const | | | + | | int | GetElement | uint64 alIdx, \\ const | Gets the value at the given index. (Indices 0 and 1 are equal to x and y, respectively.) | |
| - | | void | SetElement | uint64 alIdx, \\ int, \\ const | | | + | | void | SetElement | uint64 alIdx, \\ int, \\ const | Sets the value at the given index to the given value. (Indices 0 and 1 are equal to x and y, respectively.) | |
| - | | int | SqrLength | const | | | + | | int | SqrLength | const | Returns the length-squared of the vector. | |
| ====Remarks==== | ====Remarks==== | ||