Vector2Array

Category: Built-In Types

Brief Description

An Array of Vector2.

Member Functions

Vector2Array Vector2Array ( Array from )
void push_back ( Vector2 vector2 )
void resize ( int idx )
void set ( int idx, Vector2 vector2 )
int size ( )

Description

An Array specifically designed to hold Vector2.

Member Function Description

Construct a new Vector2Array. Optionally, you can pass in an Array that will be converted.

  • void push_back ( Vector2 vector2 )

Insert a Vector2 at the end.

  • void resize ( int idx )

Set the size of the Vector2Array. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array.

Change the Vector2 at the given index.

Return the size of the array.