API Documentation > Collection Classes > Class pfcVector2D
Class pfcVector2D

# include <pfcBase.h>

class
pfcVector2D
: public
xobject
{
xdeclare(pfcVector2D)
...
};
This is a
COMPACT class.

Description
A 2x1 array that stores a two-dimensional vector.
Array provides methods for accessing its elemnts by index(indices) and for modifying its elements. Array object "does not know" its dimentions.
Array Dimensions: [2]
Manual References:
Method Summary
static pfcVector2D *
Creates new array object with uninitialized elements.
get (xint idx0)
Gets an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.
void
set (xint idx0, xreal value)
Assignes a new value to an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.
Method Detail
get
(xint idx0)
Gets an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.
Parameters:
idx0
First element index.
Returns:
Element value.
void
set
(xint idx0, xreal value)
Assignes a new value to an array element with the specified index(indices). If an index is out of range throws exception cipXInvalidArrayIndex.
Parameters:
idx0
First element index.
value
New element value.
Returns:
static pfcVector2D *
create
()
Creates new array object with uninitialized elements.
Returns:
Created array.
Was this helpful?