10 |
10 |
11 double getWordFloat (str& s, const ushort n); |
11 double getWordFloat (str& s, const ushort n); |
12 long getWordInt (str& s, const ushort n); |
12 long getWordInt (str& s, const ushort n); |
13 vertex parseVertex (str& s, const ushort n); |
13 vertex parseVertex (str& s, const ushort n); |
14 void stripWhitespace (str& s); |
14 void stripWhitespace (str& s); |
|
15 |
|
16 // Returns whether a given string represents a floating point number |
|
17 // TODO: Does LDraw support scientific notation? |
15 bool isNumber (str& zToken); |
18 bool isNumber (str& zToken); |
16 |
19 |
17 // Float to string |
20 // Converts a float value to a string value. |
18 str ftoa (double fCoord); |
21 str ftoa (double fCoord); |
19 |
22 |
20 #endif // __MISC_H__ |
23 #endif // __MISC_H__ |