Horizon
Public Member Functions | Public Attributes | List of all members
horizon::Placement Class Reference

Public Member Functions

 Placement (const Coordi &sh={0, 0}, int a=0, bool m=false)
 
 Placement (const json &j)
 
template<typename T >
Coord< T > transform (const Coord< T > &c) const
 
template<typename T >
std::pair< Coord< T >, Coord< T > > transform_bb (const std::pair< Coord< T >, Coord< T >> &bb) const
 
void reset ()
 
void accumulate (const Placement &p)
 
void invert_angle ()
 
void set_angle (int a)
 
void inc_angle (int a)
 
void inc_angle_deg (int a)
 
void set_angle_deg (int a)
 
int get_angle () const
 
int get_angle_deg () const
 
json serialize () const
 

Public Attributes

Coordi shift
 
bool mirror = false
 

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