just a bit of tinkering around
This commit is contained in:
parent
70424c8819
commit
a9626cc33f
8 changed files with 12 additions and 12 deletions
src/core/include/pw/core
|
@ -30,8 +30,8 @@
|
|||
|
||||
namespace pw {
|
||||
|
||||
const static double __PW_PI = 3.1415926535897932384626433832795028841971693993751058209;
|
||||
const static double __PW_PI_DOUBLE = 2.0 * __PW_PI;
|
||||
constexpr double __PW_PI = 3.1415926535897932384626433832795028841971693993751058209;
|
||||
constexpr double __PW_PI_DOUBLE = 2.0 * __PW_PI;
|
||||
|
||||
template <typename T>
|
||||
inline const T pi() { return static_cast<T>(__PW_PI); }
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
|
||||
void reset();
|
||||
|
||||
aabb aabb() const { return _aabb; }
|
||||
aabb get_aabb() const { return _aabb; }
|
||||
|
||||
void compute_normals();
|
||||
|
||||
|
@ -86,7 +86,7 @@ protected:
|
|||
|
||||
std::vector<vertex2array_t> _uvs; //!< storing multiple UV sets
|
||||
|
||||
struct aabb _aabb;
|
||||
struct aabb _aabb;
|
||||
|
||||
// TODO add weights, tangents etc. pp.
|
||||
|
||||
|
|
|
@ -33,13 +33,13 @@ namespace pw {
|
|||
|
||||
struct serialize {
|
||||
|
||||
template <size_t R,size_t C,typename T>
|
||||
inline static std::string matrix(const matrix_<R,C,T>& m) {
|
||||
template <size_t R,size_t C,typename T>
|
||||
inline static std::string matrix(const matrix_<R,C,T>& m) {
|
||||
std::stringstream ss;
|
||||
|
||||
for (int r = 0; r < m.rows;r++) {
|
||||
for (int c = 0; c < m.cols;c++) {
|
||||
ss << m(r,c) << " ";
|
||||
for (int r = 0; r < m.rows;r++) {
|
||||
for (int c = 0; c < m.cols;c++) {
|
||||
ss << m(r,c) << " ";
|
||||
}
|
||||
ss << std::endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue