Vector2

There is currently no description for this class. Please help us by contributing one!

Properties

float

x

0.0

float

y

0.0

Constructors

Vector2

Vector2 ( )

Vector2

Vector2 ( Vector2 from )

Vector2

Vector2 ( Vector2i from )

Vector2

Vector2 ( float x, float y )

Methods

Vector2

abs ( ) const

float

angle ( ) const

float

angle_to ( Vector2 to ) const

float

angle_to_point ( Vector2 to ) const

float

aspect ( ) const

Vector2

bezier_derivative ( Vector2 control_1, Vector2 control_2, Vector2 end, float t ) const

Vector2

bezier_interpolate ( Vector2 control_1, Vector2 control_2, Vector2 end, float t ) const

Vector2

bounce ( Vector2 n ) const

Vector2

ceil ( ) const

Vector2

clamp ( Vector2 min, Vector2 max ) const

Vector2

clampf ( float min, float max ) const

float

cross ( Vector2 with ) const

Vector2

cubic_interpolate ( Vector2 b, Vector2 pre_a, Vector2 post_b, float weight ) const

Vector2

cubic_interpolate_in_time ( Vector2 b, Vector2 pre_a, Vector2 post_b, float weight, float b_t, float pre_a_t, float post_b_t ) const

Vector2

direction_to ( Vector2 to ) const

float

distance_squared_to ( Vector2 to ) const

float

distance_to ( Vector2 to ) const

float

dot ( Vector2 with ) const

Vector2

floor ( ) const

Vector2

from_angle ( float angle ) static

bool

is_equal_approx ( Vector2 to ) const

bool

is_finite ( ) const

bool

is_normalized ( ) const

bool

is_zero_approx ( ) const

float

length ( ) const

float

length_squared ( ) const

Vector2

lerp ( Vector2 to, float weight ) const

Vector2

limit_length ( float length=1.0 ) const

Vector2

max ( Vector2 with ) const

int

max_axis_index ( ) const

Vector2

maxf ( float with ) const

Vector2

min ( Vector2 with ) const

int

min_axis_index ( ) const

Vector2

minf ( float with ) const

Vector2

move_toward ( Vector2 to, float delta ) const

Vector2

normalized ( ) const

Vector2

orthogonal ( ) const

Vector2

posmod ( float mod ) const

Vector2

posmodv ( Vector2 modv ) const

Vector2

project ( Vector2 b ) const

Vector2

reflect ( Vector2 line ) const

Vector2

rotated ( float angle ) const

Vector2

round ( ) const

Vector2

sign ( ) const

Vector2

slerp ( Vector2 to, float weight ) const

Vector2

slide ( Vector2 n ) const

Vector2

snapped ( Vector2 step ) const

Vector2

snappedf ( float step ) const

Operators

bool

operator != ( Vector2 right )

Vector2

operator * ( Transform2D right )

Vector2

operator * ( Vector2 right )

Vector2

operator * ( float right )

Vector2

operator * ( int right )

Vector2

operator + ( Vector2 right )

Vector2

operator - ( Vector2 right )

Vector2

operator / ( Vector2 right )

Vector2

operator / ( float right )

Vector2

operator / ( int right )

bool

operator < ( Vector2 right )

bool

operator <= ( Vector2 right )

bool

operator == ( Vector2 right )

bool

operator > ( Vector2 right )

bool

operator >= ( Vector2 right )

float

operator [] ( int index )

Vector2

operator unary+ ( )

Vector2

operator unary- ( )


Constants

AXIS_X = 0

There is currently no description for this constant. Please help us by contributing one!

AXIS_Y = 1

There is currently no description for this constant. Please help us by contributing one!

ZERO = Vector2(0, 0)

There is currently no description for this constant. Please help us by contributing one!

ONE = Vector2(1, 1)

There is currently no description for this constant. Please help us by contributing one!

INF = Vector2(inf, inf)

There is currently no description for this constant. Please help us by contributing one!

LEFT = Vector2(-1, 0)

There is currently no description for this constant. Please help us by contributing one!

RIGHT = Vector2(1, 0)

There is currently no description for this constant. Please help us by contributing one!

UP = Vector2(0, -1)

There is currently no description for this constant. Please help us by contributing one!

DOWN = Vector2(0, 1)

There is currently no description for this constant. Please help us by contributing one!


Property Descriptions

float x = 0.0

There is currently no description for this property. Please help us by contributing one!


float y = 0.0

There is currently no description for this property. Please help us by contributing one!


Constructor Descriptions

Vector2 Vector2 ( )

There is currently no description for this constructor. Please help us by contributing one!


Vector2 Vector2 ( Vector2 from )

There is currently no description for this constructor. Please help us by contributing one!


Vector2 Vector2 ( Vector2i from )

There is currently no description for this constructor. Please help us by contributing one!


Vector2 Vector2 ( float x, float y )

There is currently no description for this constructor. Please help us by contributing one!


Method Descriptions

Vector2 abs ( ) const

There is currently no description for this method. Please help us by contributing one!


float angle ( ) const

There is currently no description for this method. Please help us by contributing one!


float angle_to ( Vector2 to ) const

There is currently no description for this method. Please help us by contributing one!


float angle_to_point ( Vector2 to ) const

There is currently no description for this method. Please help us by contributing one!


float aspect ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 bezier_derivative ( Vector2 control_1, Vector2 control_2, Vector2 end, float t ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 bezier_interpolate ( Vector2 control_1, Vector2 control_2, Vector2 end, float t ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 bounce ( Vector2 n ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 ceil ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 clamp ( Vector2 min, Vector2 max ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 clampf ( float min, float max ) const

There is currently no description for this method. Please help us by contributing one!


float cross ( Vector2 with ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 cubic_interpolate ( Vector2 b, Vector2 pre_a, Vector2 post_b, float weight ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 cubic_interpolate_in_time ( Vector2 b, Vector2 pre_a, Vector2 post_b, float weight, float b_t, float pre_a_t, float post_b_t ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 direction_to ( Vector2 to ) const

There is currently no description for this method. Please help us by contributing one!


float distance_squared_to ( Vector2 to ) const

There is currently no description for this method. Please help us by contributing one!


float distance_to ( Vector2 to ) const

There is currently no description for this method. Please help us by contributing one!


float dot ( Vector2 with ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 floor ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 from_angle ( float angle ) static

There is currently no description for this method. Please help us by contributing one!


bool is_equal_approx ( Vector2 to ) const

There is currently no description for this method. Please help us by contributing one!


bool is_finite ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_normalized ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_zero_approx ( ) const

There is currently no description for this method. Please help us by contributing one!


float length ( ) const

There is currently no description for this method. Please help us by contributing one!


float length_squared ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 lerp ( Vector2 to, float weight ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 limit_length ( float length=1.0 ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 max ( Vector2 with ) const

There is currently no description for this method. Please help us by contributing one!


int max_axis_index ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 maxf ( float with ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 min ( Vector2 with ) const

There is currently no description for this method. Please help us by contributing one!


int min_axis_index ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 minf ( float with ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 move_toward ( Vector2 to, float delta ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 normalized ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 orthogonal ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 posmod ( float mod ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 posmodv ( Vector2 modv ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 project ( Vector2 b ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 reflect ( Vector2 line ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 rotated ( float angle ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 round ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 sign ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 slerp ( Vector2 to, float weight ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 slide ( Vector2 n ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 snapped ( Vector2 step ) const

There is currently no description for this method. Please help us by contributing one!


Vector2 snappedf ( float step ) const

There is currently no description for this method. Please help us by contributing one!


Operator Descriptions

bool operator != ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator * ( Transform2D right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator * ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator * ( float right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator * ( int right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator + ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator - ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator / ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator / ( float right )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator / ( int right )

There is currently no description for this operator. Please help us by contributing one!


bool operator < ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


bool operator <= ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


bool operator == ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


bool operator > ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


bool operator >= ( Vector2 right )

There is currently no description for this operator. Please help us by contributing one!


float operator [] ( int index )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator unary+ ( )

There is currently no description for this operator. Please help us by contributing one!


Vector2 operator unary- ( )

There is currently no description for this operator. Please help us by contributing one!