7 #ifndef NAZARA_PLANE_HPP 8 #define NAZARA_PLANE_HPP 10 #include <Nazara/Core/String.hpp> 11 #include <Nazara/Math/Vector3.hpp> 15 struct SerializationContext;
23 Plane(
const T plane[4]);
38 Plane&
Set(T normalX, T normalY, T normalZ, T Distance);
48 Plane& operator=(
const Plane& other) =
default;
70 std::ostream& operator<<(std::ostream& out, const Nz::Plane<T>& plane);
72 #include <Nazara/Math/Plane.inl> 74 #endif // NAZARA_PLANE_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
bool Unserialize(SerializationContext &context, bool *value)
Unserializes a boolean.
Definition: Algorithm.inl:279
Math class that represents a plane in 3D.
Definition: Plane.hpp:18
Core class that represents a string.
Definition: String.hpp:22
static Plane XZ()
Shorthand for the plane (0, 1, 0, 0)
Definition: Plane.inl:405
bool operator==(const Plane &plane) const
Compares the plane to other one.
Definition: Plane.inl:328
Plane & MakeXY()
Makes the plane (0, 0, 1, 0)
Definition: Plane.inl:149
bool operator!=(const Plane &plane) const
Compares the plane to other one.
Definition: Plane.inl:343
Plane & Set(T normalX, T normalY, T normalZ, T Distance)
Sets the components of the plane.
Definition: Plane.inl:191
Structure containing a serialization/unserialization context states.
Definition: SerializationContext.hpp:18
T Distance(T x, T y, T z) const
Returns the distance from the plane to the point.
Definition: Plane.inl:119
bool Serialize(SerializationContext &context, bool value)
Serializes a boolean.
Definition: Algorithm.inl:214
String ToString() const
Gives a string representation.
Definition: Plane.inl:311
static Plane XY()
Shorthand for the plane (0, 0, 1, 0)
Definition: Plane.inl:389
static Plane YZ()
Shorthand for the plane (1, 0, 0, 0)
Definition: Plane.inl:421
static Plane Lerp(const Plane &from, const Plane &to, T interpolation)
Interpolates the plane to other one with a factor of interpolation.
Definition: Plane.inl:363
Plane & MakeYZ()
Makes the plane (1, 0, 0, 0)
Definition: Plane.inl:175
Plane & MakeXZ()
Makes the plane (0, 1, 0, 0)
Definition: Plane.inl:162
Math class that represents an element of the three dimensional vector space.
Definition: Matrix4.hpp:22