ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Plane.h
Go to the documentation of this file.
1/**
2 * @file Plane.h
3 * @brief Defines the Plane class for representing a plane in 3D space.
4 *
5 * The Plane class represents a mathematical plane defined by a centroid and a normal vector.
6 *
7 * @date 22/12/2024
8 * @version 1.0
9 * @author Coela Can't
10 */
11
12#pragma once
13
14#include "Vector3D.h"
15
16/**
17 * @class Plane
18 * @brief Represents a plane in 3D space defined by a centroid and a normal vector.
19 *
20 * The `Plane` class provides methods for initializing and describing a plane
21 * in three-dimensional space using a point on the plane (centroid) and a normal vector.
22 */
23class Plane {
24public:
25 Vector3D Centroid; ///< Point on the plane, representing the centroid.
26 Vector3D Normal; ///< Normal vector defining the plane's orientation.
27
28 /**
29 * @brief Default constructor.
30 *
31 * Initializes the plane with a default centroid and normal vector.
32 */
33 Plane();
34
35 /**
36 * @brief Parameterized constructor.
37 *
38 * Initializes the plane with the specified centroid and normal vector.
39 *
40 * @param centroid A point on the plane (centroid).
41 * @param normal A vector normal to the plane.
42 */
44
45 /**
46 * @brief Converts the Plane object to a string representation.
47 *
48 * @return A string describing the plane's centroid and normal vector.
49 */
51};
Defines a 3D vector and various related operations.
Implements a generic Kalman Filter for 1D data.
Represents a plane in 3D space defined by a centroid and a normal vector.
Definition Plane.h:23
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