mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
format_coordinate_system()
This commit is contained in:
parent
81384baf08
commit
651a95df40
@ -65,6 +65,13 @@ parse_coordinate_system_string(const string &str) {
|
||||
return CS_invalid;
|
||||
}
|
||||
|
||||
string
|
||||
format_coordinate_system(CoordinateSystem cs) {
|
||||
ostringstream strm;
|
||||
strm << cs;
|
||||
return strm.str();
|
||||
}
|
||||
|
||||
bool
|
||||
is_right_handed(CoordinateSystem cs) {
|
||||
if (cs == CS_default) {
|
||||
|
@ -40,12 +40,12 @@ enum CoordinateSystem {
|
||||
};
|
||||
|
||||
EXPCL_PANDA_LINMATH CoordinateSystem get_default_coordinate_system();
|
||||
EXPCL_PANDA_LINMATH CoordinateSystem parse_coordinate_system_string(const string &str);
|
||||
EXPCL_PANDA_LINMATH string format_coordinate_system(CoordinateSystem cs);
|
||||
EXPCL_PANDA_LINMATH bool is_right_handed(CoordinateSystem cs = CS_default);
|
||||
|
||||
END_PUBLISH
|
||||
|
||||
EXPCL_PANDA_LINMATH CoordinateSystem parse_coordinate_system_string(const string &str);
|
||||
EXPCL_PANDA_LINMATH bool is_right_handed(CoordinateSystem cs = CS_default);
|
||||
|
||||
#define IS_LEFT_HANDED_COORDSYSTEM(cs) ((cs==CS_zup_left) || (cs==CS_yup_left))
|
||||
|
||||
EXPCL_PANDA_LINMATH ostream &operator << (ostream &out, CoordinateSystem cs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user