mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 13:15:00 -04:00
correct units scale
This commit is contained in:
parent
50a339320c
commit
a3d6b17cd1
@ -207,5 +207,6 @@ static double unit_scale(DistanceUnit unit) {
|
|||||||
// convert from units of "from" to "to".
|
// convert from units of "from" to "to".
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
double convert_units(DistanceUnit from, DistanceUnit to) {
|
double convert_units(DistanceUnit from, DistanceUnit to) {
|
||||||
return unit_scale(to) / unit_scale(from);
|
return unit_scale(from) / unit_scale(to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user