Bomberman
Public Member Functions | Public Attributes | List of all members
RAY::Vector2 Class Reference

A Two-dimensionnal Vector data type. More...

#include <Vector2.hpp>

Collaboration diagram for RAY::Vector2:

Public Member Functions

 Vector2 (float x, float y)
 Vector 2 constructor. More...
 
 Vector2 ()
 Vector 2 constructor. More...
 
 Vector2 (const Vector2 &)=default
 A default Vector 2 copy-constructor. More...
 
 Vector2 (const ::Vector2 &)
 A Vector 2 constructor from libray's vector2. More...
 
 ~Vector2 ()=default
 A default Vector 2 destructor. More...
 
Vector2operator= (const Vector2 &)=default
 A Vector 2 is assignable. More...
 

Public Attributes

float x
 X value of vector. More...
 
float y
 Y value of vector. More...
 
INTERNAL __pad0__: operator ::Vector2() const
 

Detailed Description

A Two-dimensionnal Vector data type.

Constructor & Destructor Documentation

◆ Vector2() [1/4]

RAY::Vector2::Vector2 ( float  x,
float  y 
)

Vector 2 constructor.

Parameters
xx-value of vector, such as a width
yy-value of vector, such as a height

◆ Vector2() [2/4]

RAY::Vector2::Vector2 ( )

Vector 2 constructor.

All values are set to zero

◆ Vector2() [3/4]

RAY::Vector2::Vector2 ( const Vector2 )
default

A default Vector 2 copy-constructor.

◆ Vector2() [4/4]

RAY::Vector2::Vector2 ( const ::Vector2 vector)

A Vector 2 constructor from libray's vector2.

◆ ~Vector2()

RAY::Vector2::~Vector2 ( )
default

A default Vector 2 destructor.

Member Function Documentation

◆ operator=()

Vector2& RAY::Vector2::operator= ( const Vector2 )
default

A Vector 2 is assignable.

Member Data Documentation

◆ __pad0__

INTERNAL RAY::Vector2::__pad0__

◆ x

float RAY::Vector2::x

X value of vector.

◆ y

float RAY::Vector2::y

Y value of vector.


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