More reimplementations

This commit is contained in:
2015-08-25 15:04:15 -07:00
parent d5c8fe162f
commit eeb7a0235e
10 changed files with 174 additions and 16 deletions

View File

@@ -11,6 +11,14 @@ public:
inline CPlane() {}
CPlane(float a, float b, float c, float d) : a(a), b(b), c(c), d(d) {}
CPlane(const CVector3f& a, const CVector3f& b, const CVector3f& c)
{
CVector3f ab = b - a;
CVector3f ac = c - a;
vec = ab.cross(ac).normalized();
d = -a.dot(vec);
}
CPlane(const CVector3f& point, float displacement)
{
#if __SSE__