Euphoria
eu::unit2f Struct Reference

#include <vec2.h>

Public Member Functions

 unit2f (float ax, float ay)
 
float * get_data_ptr ()
 
unit2f get_rotated (const Angle &a) const
 
const float * get_data_ptr () const
 
vec2f to_vec () const
 
unit2f get_flipped_y () const
 
float get_length_squared () const
 
bool is_valid () const
 
unit2f operator- () const
 

Public Attributes

float x
 
float y
 

Friends

struct vec2f
 

Detailed Description

Definition at line 105 of file vec2.h.

Constructor & Destructor Documentation

◆ unit2f()

eu::unit2f::unit2f ( float  ax,
float  ay 
)
explicit

Definition at line 245 of file vec2.cc.

Member Function Documentation

◆ get_data_ptr() [1/2]

float * eu::unit2f::get_data_ptr ( )

Definition at line 196 of file vec2.cc.

◆ get_data_ptr() [2/2]

const float * eu::unit2f::get_data_ptr ( ) const

Definition at line 202 of file vec2.cc.

◆ get_flipped_y()

unit2f eu::unit2f::get_flipped_y ( ) const

Definition at line 216 of file vec2.cc.

◆ get_length_squared()

float eu::unit2f::get_length_squared ( ) const

Definition at line 228 of file vec2.cc.

◆ get_rotated()

unit2f eu::unit2f::get_rotated ( const Angle a) const

Definition at line 208 of file vec2.cc.

◆ is_valid()

bool eu::unit2f::is_valid ( ) const

Definition at line 240 of file vec2.cc.

◆ operator-()

unit2f eu::unit2f::operator- ( ) const

Definition at line 222 of file vec2.cc.

◆ to_vec()

vec2f eu::unit2f::to_vec ( ) const

Definition at line 234 of file vec2.cc.

Friends And Related Function Documentation

◆ vec2f

friend struct vec2f
friend

Definition at line 127 of file vec2.h.

Member Data Documentation

◆ x

float eu::unit2f::x

Definition at line 107 of file vec2.h.

◆ y

float eu::unit2f::y

Definition at line 108 of file vec2.h.


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