Cavestory Mod API
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GUI_POINT_F Struct Reference

Manages points (float). More...

#include <CSMAPI_types.h>

Public Member Functions

 GUI_POINT_F (float _x, float _y)
 
 GUI_POINT_F (RECT r)
 
 GUI_POINT_F (GUI_RECT r)
 
GUI_POINT_F to_screenspace ()
 Multiplies the points by the current screen magnification.
 
GUI_POINT_F from_screenspace ()
 Divides the points by the current screen magnification.
 
GUI_POINT_F make_frame_relative ()
 Divides the points by the current screen magnification.
 
GUI_POINT_F reset_frame_relativity ()
 Divides the points by the current screen magnification.
 
GUI_POINT_F normalize ()
 
float angle_to (GUI_POINT_F other)
 
float angle_to (GUI_POINT other)
 
float distance (GUI_POINT_F other)
 
GUI_POINT_F max_normal ()
 
bool operator== (const GUI_POINT_F &o)
 
bool operator!= (const GUI_POINT_F &o)
 
bool operator== (const GUI_POINT &o)
 
bool operator!= (const GUI_POINT &o)
 
void operator+= (const GUI_POINT_F &n)
 
void operator*= (const float n)
 
GUI_POINT_F operator+ (const GUI_POINT_F &n)
 
GUI_POINT_F operator- (const GUI_POINT_F &n)
 
GUI_POINT_F operator* (const float n)
 
GUI_POINT_F operator/ (const float n)
 
GUI_POINT_F operator+ (const GUI_POINT &n)
 
GUI_POINT_F operator- (const GUI_POINT &n)
 

Static Public Member Functions

static bool intersect (GUI_POINT_F a, GUI_POINT_F b, GUI_POINT_F c, GUI_POINT_F d, GUI_POINT_F *hit)
 

Public Attributes

float x
 
float y
 

Detailed Description

Manages points (float).


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