Euphoria
eu::size2f Struct Reference

#include <size2.h>

Public Member Functions

 size2f ()
 
vec2f calc_center_offset_for (const size2f &o) const
 
void operator+= (const size2f &rhs)
 
void operator-= (const size2f &rhs)
 
void operator*= (float rhs)
 
void operator/= (float rhs)
 

Static Public Member Functions

static size2f create_from_width_height (float w, float h)
 
static size2f create_from_height_width (float h, float w)
 
static size2f create_from_square (float s)
 

Public Attributes

float width
 
float height
 

Detailed Description

Definition at line 11 of file size2.h.

Constructor & Destructor Documentation

◆ size2f()

eu::size2f::size2f ( )

Definition at line 8 of file size2.cc.

Member Function Documentation

◆ calc_center_offset_for()

vec2f eu::size2f::calc_center_offset_for ( const size2f o) const

Definition at line 61 of file size2.cc.

◆ create_from_height_width()

size2f eu::size2f::create_from_height_width ( float  h,
float  w 
)
static

Definition at line 21 of file size2.cc.

◆ create_from_square()

size2f eu::size2f::create_from_square ( float  s)
static

Definition at line 27 of file size2.cc.

◆ create_from_width_height()

size2f eu::size2f::create_from_width_height ( float  w,
float  h 
)
static

Definition at line 15 of file size2.cc.

◆ operator*=()

void eu::size2f::operator*= ( float  rhs)

Definition at line 47 of file size2.cc.

◆ operator+=()

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

Definition at line 33 of file size2.cc.

◆ operator-=()

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

Definition at line 40 of file size2.cc.

◆ operator/=()

void eu::size2f::operator/= ( float  rhs)

Definition at line 54 of file size2.cc.

Member Data Documentation

◆ height

float eu::size2f::height

Definition at line 14 of file size2.h.

◆ width

float eu::size2f::width

Definition at line 13 of file size2.h.


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