ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
Plane Class Reference

Represents a plane in 3D space defined by a centroid and a normal vector. More...

#include <Plane.h>

Collaboration diagram for Plane:

Public Member Functions

 Plane ()
 Default constructor.
 
 Plane (Vector3D centroid, Vector3D normal)
 Parameterized constructor.
 
String ToString ()
 Converts the Plane object to a string representation.
 

Public Attributes

Vector3D Centroid
 Point on the plane, representing the centroid.
 
Vector3D Normal
 Normal vector defining the plane's orientation.
 

Detailed Description

Represents a plane in 3D space defined by a centroid and a normal vector.

The Plane class provides methods for initializing and describing a plane in three-dimensional space using a point on the plane (centroid) and a normal vector.

Definition at line 23 of file Plane.h.

Constructor & Destructor Documentation

◆ Plane() [1/2]

Plane ( )

Default constructor.

Initializes the plane with a default centroid and normal vector.

Definition at line 5 of file Plane.cpp.

◆ Plane() [2/2]

Plane ( Vector3D  centroid,
Vector3D  normal 
)

Parameterized constructor.

Initializes the plane with the specified centroid and normal vector.

Parameters
centroidA point on the plane (centroid).
normalA vector normal to the plane.

Definition at line 8 of file Plane.cpp.

Member Function Documentation

◆ ToString()

String ToString ( )

Converts the Plane object to a string representation.

Returns
A string describing the plane's centroid and normal vector.

Definition at line 12 of file Plane.cpp.

References Centroid, Normal, and Vector3D::ToString().

Member Data Documentation

◆ Centroid

Vector3D Centroid

Point on the plane, representing the centroid.

Definition at line 25 of file Plane.h.

Referenced by ToString().

◆ Normal

Vector3D Normal

Normal vector defining the plane's orientation.

Definition at line 26 of file Plane.h.

Referenced by ToString().


The documentation for this class was generated from the following files: