User Tools

Site Tools


hpl3:community:scripting:classes:cvector3f

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl3:community:scripting:classes:cvector3f [2015/11/06 03:37]
abion47
hpl3:community:scripting:classes:cvector3f [2015/11/06 03:40] (current)
abion47
Line 11: Line 11:
  
 ^ Return Type ^ Function Name ^ Parameters ^ Description ^ ^ Return Type ^ Function Name ^ Parameters ^ Description ^
-| float | GetElement | uint64 alIdx, \\ const | Gets the value at the given index. (Indices 0, 1, and 2 are equal to x, y, and a, respectively.) | +| float | GetElement | uint64 alIdx, \\ const | Gets the value at the given index. (Indices 0, 1, and 2 are equal to x, y, and z, respectively.) | 
-| void | SetElement | uint64 alIdx, \\ float, \\ const | Sets the value at the given index to the given value. (Indices 0, 1, and 2 are equal to x, y, and a, respectively.) |+| void | SetElement | uint64 alIdx, \\ float, \\ const | Sets the value at the given index to the given value. (Indices 0, 1, and 2 are equal to x, y, and z, respectively.) |
 | float | SqrLength | const | Returns the length-squared of this vector. | | float | SqrLength | const | Returns the length-squared of this vector. |
 | float | Length | const | Returns the length of this vector. | | float | Length | const | Returns the length of this vector. |
Line 23: Line 23:
 <​code=c++>​cVector3f vBaseVector(2.0,​ 5.0, 3.0); <​code=c++>​cVector3f vBaseVector(2.0,​ 5.0, 3.0);
 float fNormFactor = vBaseVector.Normalize();​ float fNormFactor = vBaseVector.Normalize();​
-cVector3f vNormalizedVector(vBaseVector.x / fNormFactor,​ vBaseVector.y / fNormFactor,​ vBaseVector.z / fNormFactor);</​code>​+cVector3f vNormalizedVector(vBaseVector.x / fNormFactor, ​ 
 +                            ​vBaseVector.y / fNormFactor, ​ 
 +                            ​vBaseVector.z / fNormFactor);</​code>​
hpl3/community/scripting/classes/cvector3f.1446781078.txt.gz · Last modified: 2015/11/06 03:37 by abion47