2D_Game_Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Vec2 Struct Reference

#include <structs.hpp>

Public Member Functions

 Vec2 ()
 
 Vec2 (float x, float y)
 

Public Attributes

union { 
 
   float   x 
 
   float   w 
 
};  
 
union { 
 
   float   y 
 
   float   h 
 
};  
 

Detailed Description

Definition at line 3 of file structs.hpp.

Constructor & Destructor Documentation

◆ Vec2() [1/2]

Vec2::Vec2 ( )

Definition at line 4 of file structs.cpp.

◆ Vec2() [2/2]

Vec2::Vec2 ( float x,
float y )

Definition at line 5 of file structs.cpp.

Member Data Documentation

◆ [union]

union { ... } Vec2

◆ [union]

union { ... } Vec2

◆ h

float Vec2::h

Definition at line 10 of file structs.hpp.

◆ w

float Vec2::w

Definition at line 6 of file structs.hpp.

◆ x

float Vec2::x

Definition at line 5 of file structs.hpp.

◆ y

float Vec2::y

Definition at line 9 of file structs.hpp.


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