BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
Vector2 Class Reference

#include <Vector.h>

Public Member Functions

 Vector2 (int x, int y)
 
 Vector2 (int xy)
 
 Vector2 ()
 

Public Attributes

int x
 
int y
 

Detailed Description

Two-component vector (X/Y)

Constructor & Destructor Documentation

◆ Vector2() [1/3]

Vector2::Vector2 ( int x,
int y )

Create the Vector2

Parameters
xThe X coordinate to assign to the Vector2.
yThe Y coordinate to assign to the Vector2.

◆ Vector2() [2/3]

Vector2::Vector2 ( int xy)

Create the Vector2

Parameters
xyThe value to assign to the X and Y coordinates of the Vector2.

◆ Vector2() [3/3]

Vector2::Vector2 ( )

Create a blank Vector2, with X/Y = 0.

Member Data Documentation

◆ x

int Vector2::x

The X coordinate of the Vector2.

◆ y

int Vector2::y

The Y coordinate of the Vector2.


The documentation for this class was generated from the following files: