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

Manages points. More...

#include <CSMAPI_types.h>

Public Member Functions

 GUI_POINT (int _x, int _y)
 
 GUI_POINT (RECT r)
 
 GUI_POINT (GUI_RECT r)
 
GUI_POINT to_screenspace ()
 
GUI_POINT from_screenspace ()
 
GUI_POINT make_frame_relative ()
 
GUI_POINT reset_frame_relativity ()
 
GUI_POINT normalize ()
 
GUI_POINT setX (int NewInt)
 
GUI_POINT setY (int NewInt)
 
float angle_to (GUI_POINT other)
 
float distance (GUI_POINT other)
 
float distance_x (GUI_POINT other)
 
float distance_y (GUI_POINT other)
 
int dot (GUI_POINT other)
 
int cross (GUI_POINT other)
 
void operator+= (const GUI_POINT &n)
 
void operator*= (const int n)
 
bool operator== (const GUI_POINT &o)
 
bool operator!= (const GUI_POINT &o)
 
GUI_POINT operator+ (const GUI_POINT &n)
 
GUI_POINT operator- (const GUI_POINT &n)
 
GUI_POINT operator* (const int n)
 
GUI_POINT operator/ (const int n)
 
GUI_POINT operator* (const float n)
 
GUI_POINT operator/ (const float n)
 
bool operator== (const GUI_POINT_F &o)
 
bool operator!= (const GUI_POINT_F &o)
 
GUI_POINT_F operator+ (const GUI_POINT_F &n)
 
GUI_POINT_F operator- (const GUI_POINT_F &n)
 
GUI_POINT_F operator* (const GUI_POINT_F &n)
 
GUI_POINT_F operator/ (const GUI_POINT_F &n)
 
int HashIndex ()
 
int HashIndex () const
 
bool operator< (GUI_POINT other)
 
bool operator<= (GUI_POINT other)
 
bool operator> (GUI_POINT other)
 
bool operator>= (GUI_POINT other)
 
bool operator< (const GUI_POINT other) const
 
bool operator<= (const GUI_POINT other) const
 
bool operator> (const GUI_POINT other) const
 
bool operator>= (const GUI_POINT other) const
 

Static Public Member Functions

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

Public Attributes

int x
 The X position.
 
int y
 The Y position.
 

Detailed Description

Manages points.

Examples
RenderPipeline.cpp, WelcomeMode.cpp, and WelcomeMode.h.

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