ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Plane.cpp
Go to the documentation of this file.
1#include "Plane.h"
2#include "Mathematics.h"
3
4// Default constructor.
6
7// Parameterized constructor.
9 : Centroid(centroid), Normal(normal) {}
10
11// Convert Plane to a string representation.
14 String normal = Normal.ToString();
15
16 return "[ " + centroid + ", " + normal + " ]";
17}
Provides a collection of mathematical utility functions and constants.
Defines the Plane class for representing a plane in 3D space.
Implements a generic Kalman Filter for 1D data.
String ToString()
Converts the Plane object to a string representation.
Definition Plane.cpp:12
Vector3D Normal
Normal vector defining the plane's orientation.
Definition Plane.h:26
Plane()
Default constructor.
Definition Plane.cpp:5
Vector3D Centroid
Point on the plane, representing the centroid.
Definition Plane.h:25
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
Definition Vector3D.h:26
String ToString() const
Converts the vector to a string representation.
Definition Vector3D.cpp:189