Switch from Nz prefix to namespace Nz
What a huge commit Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
@@ -10,50 +10,53 @@
|
||||
#include <Nazara/Core/String.hpp>
|
||||
#include <Nazara/Math/Vector3.hpp>
|
||||
|
||||
template<typename T>
|
||||
class NzPlane
|
||||
namespace Nz
|
||||
{
|
||||
public:
|
||||
NzPlane() = default;
|
||||
NzPlane(T normalX, T normalY, T normalZ, T Distance);
|
||||
NzPlane(const T plane[4]);
|
||||
NzPlane(const NzVector3<T>& Normal, T Distance);
|
||||
NzPlane(const NzVector3<T>& Normal, const NzVector3<T>& point);
|
||||
NzPlane(const NzVector3<T>& point1, const NzVector3<T>& point2, const NzVector3<T>& point3);
|
||||
template<typename U> explicit NzPlane(const NzPlane<U>& plane);
|
||||
NzPlane(const NzPlane& plane) = default;
|
||||
~NzPlane() = default;
|
||||
template<typename T>
|
||||
class Plane
|
||||
{
|
||||
public:
|
||||
Plane() = default;
|
||||
Plane(T normalX, T normalY, T normalZ, T Distance);
|
||||
Plane(const T plane[4]);
|
||||
Plane(const Vector3<T>& Normal, T Distance);
|
||||
Plane(const Vector3<T>& Normal, const Vector3<T>& point);
|
||||
Plane(const Vector3<T>& point1, const Vector3<T>& point2, const Vector3<T>& point3);
|
||||
template<typename U> explicit Plane(const Plane<U>& plane);
|
||||
Plane(const Plane& plane) = default;
|
||||
~Plane() = default;
|
||||
|
||||
T Distance(const NzVector3<T>& point) const;
|
||||
T Distance(T x, T y, T z) const;
|
||||
T Distance(const Vector3<T>& point) const;
|
||||
T Distance(T x, T y, T z) const;
|
||||
|
||||
NzPlane& Set(T normalX, T normalY, T normalZ, T Distance);
|
||||
NzPlane& Set(const T plane[4]);
|
||||
NzPlane& Set(const NzPlane& plane);
|
||||
NzPlane& Set(const NzVector3<T>& Normal, T Distance);
|
||||
NzPlane& Set(const NzVector3<T>& Normal, const NzVector3<T>& point);
|
||||
NzPlane& Set(const NzVector3<T>& point1, const NzVector3<T>& point2, const NzVector3<T>& point3);
|
||||
template<typename U> NzPlane& Set(const NzPlane<U>& plane);
|
||||
Plane& Set(T normalX, T normalY, T normalZ, T Distance);
|
||||
Plane& Set(const T plane[4]);
|
||||
Plane& Set(const Plane& plane);
|
||||
Plane& Set(const Vector3<T>& Normal, T Distance);
|
||||
Plane& Set(const Vector3<T>& Normal, const Vector3<T>& point);
|
||||
Plane& Set(const Vector3<T>& point1, const Vector3<T>& point2, const Vector3<T>& point3);
|
||||
template<typename U> Plane& Set(const Plane<U>& plane);
|
||||
|
||||
NzString ToString() const;
|
||||
String ToString() const;
|
||||
|
||||
bool operator==(const NzPlane& plane) const;
|
||||
bool operator!=(const NzPlane& plane) const;
|
||||
bool operator==(const Plane& plane) const;
|
||||
bool operator!=(const Plane& plane) const;
|
||||
|
||||
static NzPlane Lerp(const NzPlane& from, const NzPlane& to, T interpolation);
|
||||
static NzPlane XY();
|
||||
static NzPlane XZ();
|
||||
static NzPlane YZ();
|
||||
static Plane Lerp(const Plane& from, const Plane& to, T interpolation);
|
||||
static Plane XY();
|
||||
static Plane XZ();
|
||||
static Plane YZ();
|
||||
|
||||
NzVector3<T> normal;
|
||||
T distance;
|
||||
};
|
||||
Vector3<T> normal;
|
||||
T distance;
|
||||
};
|
||||
|
||||
typedef Plane<double> Planed;
|
||||
typedef Plane<float> Planef;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
std::ostream& operator<<(std::ostream& out, const NzPlane<T>& plane);
|
||||
|
||||
typedef NzPlane<double> NzPlaned;
|
||||
typedef NzPlane<float> NzPlanef;
|
||||
std::ostream& operator<<(std::ostream& out, const Nz::Plane<T>& plane);
|
||||
|
||||
#include <Nazara/Math/Plane.inl>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user