User Tools

Site Tools


Sidebar

hpl3:community:scripting:classes:cvector2f

Table of Contents

cVector2f

Fields

Field Name Type Description
x float The x value of the vector.
y float The y value of the vector.

Functions

Return Type Function Name Parameters Description
float 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,
float afVal,
const
Sets the value at the given index to the given value. (Indices 0 and 1 are equal to x and y, respectively.)
float SqrLength const Returns the length-squared of this vector.
float Length const Returns the length of this vector.
float Normalize Calculates the normalization factor for this vector. (See Remarks.)

Remarks

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

hpl3/community/scripting/classes/cvector2f.1446780472.txt.gz · Last modified: 2015/11/06 03:27 by abion47