MAV'RIC
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
raytracing::Plane Class Reference

Plane. More...

#include <raytracing.hpp>

Inheritance diagram for raytracing::Plane:
Inheritance graph
[legend]
Collaboration diagram for raytracing::Plane:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Plane (Vector3f center=Vector3f{0.0f, 0.0f, 0.0f}, Vector3f normal=Vector3f{1.0f, 0.0f, 0.0f})
 Constructor.
const Vector3fcenter (void) const
 Return origin point.
bool set_center (Vector3f center)
 Update center point.
const Vector3fnormal (void) const
 Return normal vector.
bool set_normal (Vector3f normal)
 Update normal vector.
bool intersect (const Ray &ray, Intersection &intersection)
 Perform intersection between a ray and the current object.

Detailed Description

Plane.


Constructor & Destructor Documentation

Constructor.

Parameters:
centerCenter of sphere
radiusRadius of sphere

Here is the call graph for this function:


Member Function Documentation

bool raytracing::Plane::intersect ( const Ray ray,
Intersection intersection 
) [virtual]

Perform intersection between a ray and the current object.

Parameters:
rayRay to intersect with (input)
intersectionIntersection point (output)
Returns:
boolean indicating if an intersection was found

Implements raytracing::Object.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines