Moved hydra to its own namespace
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#include "assert.h"
|
||||
#include "krhelpers.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void AABB::init()
|
||||
{
|
||||
@@ -371,5 +371,5 @@ Vector3 AABB::nearestPoint(const Vector3& v) const
|
||||
return Vector3::Create(KRCLAMP(v.x, min.x, max.x), KRCLAMP(v.y, min.y, max.y), KRCLAMP(v.z, min.z, max.z));
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#include "../include/hydra.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
HitInfo::HitInfo()
|
||||
{
|
||||
@@ -96,5 +96,5 @@ HitInfo& HitInfo::operator =(const HitInfo& b)
|
||||
return *this;
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void Matrix2::init()
|
||||
{
|
||||
@@ -216,5 +216,5 @@ Matrix2 Matrix2::Identity()
|
||||
return m;
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void Matrix2x3::init()
|
||||
{
|
||||
@@ -245,5 +245,5 @@ Matrix2x3 Matrix2x3::Identity()
|
||||
return m;
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void Matrix4::init()
|
||||
{
|
||||
@@ -484,5 +484,5 @@ Matrix4 Matrix4::Identity()
|
||||
return m;
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "krhelpers.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void Quaternion::init()
|
||||
{
|
||||
@@ -458,4 +458,4 @@ Quaternion Quaternion::Slerp(const Quaternion& a, const Quaternion& b, float t)
|
||||
return (c * sinf((1.0f - t) * halftheta) + b * sinf(t * halftheta)) / sinf(halftheta);
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#include "../include/hydra.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
float SmoothStep(float a, float b, float t)
|
||||
{
|
||||
@@ -44,4 +44,4 @@ float Lerp(float a, float b, float t)
|
||||
return (a + (b - a) * t);
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#include "../include/hydra.h"
|
||||
|
||||
using namespace kraken;
|
||||
using namespace hydra;
|
||||
|
||||
namespace {
|
||||
bool _intersectSphere(const Vector3& start, const Vector3& dir, const Vector3& sphere_center, float sphere_radius, float& distance)
|
||||
@@ -96,7 +96,7 @@ Vector3 _closestPointOnLine(const Vector3& a, const Vector3& b, const Vector3& p
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void Triangle3::init(const Vector3& v1, const Vector3& v2, const Vector3& v3)
|
||||
{
|
||||
@@ -350,4 +350,4 @@ bool Triangle3::containsPoint(const Vector3& p) const
|
||||
return (r + t <= 1);
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "../include/hydra.h"
|
||||
#include "krhelpers.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void Vector2::init()
|
||||
{
|
||||
@@ -299,4 +299,4 @@ Vector2 Vector2::Max(const Vector2& v1, const Vector2& v2)
|
||||
return Vector2::Create(KRMAX(v1.x, v2.x), KRMAX(v1.y, v2.y));
|
||||
}
|
||||
|
||||
} // namepsace kraken
|
||||
} // namepsace hydra
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "../include/hydra.h"
|
||||
#include "krhelpers.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
void Vector2i::init()
|
||||
{
|
||||
@@ -293,4 +293,4 @@ Vector2i Vector2i::Max(const Vector2i& v1, const Vector2i& v2)
|
||||
return Vector2i::Create(KRMAX(v1.x, v2.x), KRMAX(v1.y, v2.y));
|
||||
}
|
||||
|
||||
} // namepsace kraken
|
||||
} // namepsace hydra
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "../include/hydra.h"
|
||||
#include "krhelpers.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
//default constructor
|
||||
void Vector3::init()
|
||||
@@ -502,5 +502,5 @@ bool Vector3::operator <(const Vector3& b) const
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "../include/hydra.h"
|
||||
#include "krhelpers.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
//default constructor
|
||||
void Vector3i::init()
|
||||
@@ -417,4 +417,4 @@ bool Vector3i::operator <(const Vector3i& b) const
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "../include/hydra.h"
|
||||
#include "krhelpers.h"
|
||||
|
||||
namespace kraken {
|
||||
namespace hydra {
|
||||
|
||||
//default constructor
|
||||
void Vector4::init()
|
||||
@@ -379,4 +379,4 @@ bool Vector4::operator <(const Vector4& b) const
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace kraken
|
||||
} // namespace hydra
|
||||
|
||||
Reference in New Issue
Block a user