SurfacePoint::SurfacePointNormal Struct Reference

Convenience stand-in normal which plays nicely with shapes that don't support the concept of a normal (ex. point lights). More...

#include <SurfacePoint.h>

List of all members.

Public Member Functions

 SurfacePointNormal (const Vector3 &normal)
real_t dot (const Vector3 &v) const
 If the associated SurfacePoint is defined at a point with a normal, will return the standard dot product of the given Vector3 v with its shading normal, normalS. If the point does not have a normal (ex. point lights), this function will return 1.

Public Attributes

bool hasNormal
 whether or not the underlying SurfacePoint has a surface normal


Detailed Description

Convenience stand-in normal which plays nicely with shapes that don't support the concept of a normal (ex. point lights).

Definition at line 126 of file SurfacePoint.h.


Constructor & Destructor Documentation

SurfacePoint::SurfacePointNormal::SurfacePointNormal ( const Vector3 normal  )  [inline]

Definition at line 127 of file SurfacePoint.h.


Member Function Documentation

real_t SurfacePoint::SurfacePointNormal::dot ( const Vector3 v  )  const [inline]

If the associated SurfacePoint is defined at a point with a normal, will return the standard dot product of the given Vector3 v with its shading normal, normalS. If the point does not have a normal (ex. point lights), this function will return 1.

Definition at line 138 of file SurfacePoint.h.


Member Data Documentation

whether or not the underlying SurfacePoint has a surface normal

Definition at line 143 of file SurfacePoint.h.


The documentation for this struct was generated from the following file:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6