Inherits from JavaScript Object
Location aphid.core.Vector2

Overview of Constructors

Overview of Tasks

Attributes

  • Name
  • x
  • y
  • Type
  • float
  • float
  • Writability
  • readwrite
  • readwrite

Functions

  • Return Type
  • Vector2
  • bool
  • void
  • string

Class Attributes

  • Type
  • Vector2
  • Writability
  • readonly

Constructors

Vector2(x, y)

new Vector2(float x, float y)

Parameters

float x
float y

Vector2(v2)

new Vector2(Vector2 v2)

Parameters

Non-null Vector2 v2

Vector2()

new Vector2()

Attributes

x

readwrite float x

y

readwrite float y

Functions

copy()

Vector2 copy()

Return Value: Vector2

equals(v)

bool equals(Vector2 v)

Parameters

Non-null Vector2 v

Return Value: bool

setXY(parameter_0, parameter_1)

void setXY(float parameter0, float parameter1)

Parameters

float parameter_0
float parameter_1

toString()

string toString()

Return Value: string

Class Attributes

Vector2.zero

Non-null readonly Vector2 zero