mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -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;
|
return CS_invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string
|
||||||
|
format_coordinate_system(CoordinateSystem cs) {
|
||||||
|
ostringstream strm;
|
||||||
|
strm << cs;
|
||||||
|
return strm.str();
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
is_right_handed(CoordinateSystem cs) {
|
is_right_handed(CoordinateSystem cs) {
|
||||||
if (cs == CS_default) {
|
if (cs == CS_default) {
|
||||||
|
@ -40,12 +40,12 @@ enum CoordinateSystem {
|
|||||||
};
|
};
|
||||||
|
|
||||||
EXPCL_PANDA_LINMATH CoordinateSystem get_default_coordinate_system();
|
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
|
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))
|
#define IS_LEFT_HANDED_COORDSYSTEM(cs) ((cs==CS_zup_left) || (cs==CS_yup_left))
|
||||||
|
|
||||||
EXPCL_PANDA_LINMATH ostream &operator << (ostream &out, CoordinateSystem cs);
|
EXPCL_PANDA_LINMATH ostream &operator << (ostream &out, CoordinateSystem cs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user