Euphoria
eu::vec2i Struct Reference

#include <vec2.h>

Public Member Functions

 vec2i ()=default
 
constexpr vec2i (int ax, int ay)
 
 vec2i (const std::tuple< int, int > &a)
 
 vec2i (const unit2i &u)
 
int * get_data_ptr ()
 
const int * get_data_ptr () const
 
vec2f to_f () const
 
vec2i get_flipped_y () const
 
void operator+= (const vec2i &rhs)
 
void operator-= (const vec2i &rhs)
 
vec2i operator- () const
 
void operator*= (int rhs)
 

Static Public Member Functions

static vec2i from_to (const vec2i &from, const vec2i &to)
 

Public Attributes

int x
 
int y
 

Detailed Description

Definition at line 71 of file vec2.h.

Constructor & Destructor Documentation

◆ vec2i() [1/4]

eu::vec2i::vec2i ( )
default

◆ vec2i() [2/4]

constexpr eu::vec2i::vec2i ( int  ax,
int  ay 
)
inlineconstexpr

Definition at line 77 of file vec2.h.

◆ vec2i() [3/4]

eu::vec2i::vec2i ( const std::tuple< int, int > &  a)
explicit

Definition at line 130 of file vec2.cc.

◆ vec2i() [4/4]

eu::vec2i::vec2i ( const unit2i &  u)
explicit

Member Function Documentation

◆ from_to()

vec2i eu::vec2i::from_to ( const vec2i from,
const vec2i to 
)
static

Definition at line 182 of file vec2.cc.

◆ get_data_ptr() [1/2]

int * eu::vec2i::get_data_ptr ( )

Definition at line 143 of file vec2.cc.

◆ get_data_ptr() [2/2]

const int * eu::vec2i::get_data_ptr ( ) const

Definition at line 149 of file vec2.cc.

◆ get_flipped_y()

vec2i eu::vec2i::get_flipped_y ( ) const

Definition at line 155 of file vec2.cc.

◆ operator*=()

void eu::vec2i::operator*= ( int  rhs)

Definition at line 188 of file vec2.cc.

◆ operator+=()

void eu::vec2i::operator+= ( const vec2i rhs)

Definition at line 161 of file vec2.cc.

◆ operator-()

vec2i eu::vec2i::operator- ( ) const

Definition at line 175 of file vec2.cc.

◆ operator-=()

void eu::vec2i::operator-= ( const vec2i rhs)

Definition at line 168 of file vec2.cc.

◆ to_f()

vec2f eu::vec2i::to_f ( ) const

Definition at line 137 of file vec2.cc.

Member Data Documentation

◆ x

int eu::vec2i::x

Definition at line 73 of file vec2.h.

◆ y

int eu::vec2i::y

Definition at line 74 of file vec2.h.


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