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

Cylinder. More...

#include <raytracing.hpp>

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

List of all members.

Public Member Functions

 Cylinder (Vector3f center=Vector3f{0.0f, 0.0f, 0.0f}, Vector3f axis=Vector3f{0.0f, 0.0f, 1.0f}, float radius=1.0f)
 Constructor.
const Vector3fcenter (void) const
 Return center point.
bool set_center (Vector3f center)
 Update center point.
const Vector3faxis (void) const
 Return axis.
bool set_axis (Vector3f axis)
 Update axis.
float radius (void) const
 Return radius vector.
bool set_radius (float radius)
 Update radius.
bool intersect (const Ray &ray, Intersection &intersection)
 Perform intersection between a ray and the current object.

Detailed Description

Cylinder.


Constructor & Destructor Documentation

Constructor.

Parameters:
centerCenter of cylinder
axisAxis of the cylinder (normal vetor)
radiusRadius of cylinder

Here is the call graph for this function:


Member Function Documentation

bool raytracing::Cylinder::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