#include <normal.h>
Public Member Functions | |
Normal (float _x=0, float _y=0, float _z=0) | |
Normal | operator- () const |
Normal | operator+ (const Normal &v) const |
Normal & | operator+= (const Normal &v) |
Normal | operator- (const Normal &v) const |
Normal & | operator-= (const Normal &v) |
Normal | operator* (float f) const |
Normal & | operator*= (float f) |
Normal | operator/ (float f) const |
Normal & | operator/= (float f) |
float | LengthSquared () const |
float | Length () const |
Normal (const Vector &v) | |
float | operator[] (int i) const |
float & | operator[] (int i) |
Public Attributes | |
float | x |
float | y |
float | z |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
Definition at line 33 of file normal.h.
lux::Normal::Normal | ( | float | _x = 0 , |
|
float | _y = 0 , |
|||
float | _z = 0 | |||
) | [inline] |
Definition at line 37 of file normal.h.
Referenced by operator*(), operator+(), operator-(), and operator/().
float lux::Normal::Length | ( | ) | const [inline] |
float lux::Normal::LengthSquared | ( | ) | const [inline] |
Normal lux::Normal::operator* | ( | float | f | ) | const [inline] |
Normal& lux::Normal::operator*= | ( | float | f | ) | [inline] |
Normal lux::Normal::operator- | ( | ) | const [inline] |
Normal lux::Normal::operator/ | ( | float | f | ) | const [inline] |
Normal& lux::Normal::operator/= | ( | float | f | ) | [inline] |
float& lux::Normal::operator[] | ( | int | i | ) | [inline] |
float lux::Normal::operator[] | ( | int | i | ) | const [inline] |
void lux::Normal::serialize | ( | Archive & | ar, | |
const unsigned int | version | |||
) | [inline, private] |
float lux::Normal::x |
Definition at line 84 of file normal.h.
Referenced by lux::AbsDot(), lux::Material::Bump(), lux::DifferentialGeometry::ComputeDifferentials(), lux::Cross(), lux::Dot(), lux::RealisticCamera::GenerateRay(), lux::BSDF::HasShadingGeometry(), LengthSquared(), lux::DebugIntegrator::Li(), lux::BSDF::LocalToWorld(), lux::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), lux::operator<<(), operator[](), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), serialize(), and lux::TransformAccordingNormal().
float lux::Normal::y |
Definition at line 84 of file normal.h.
Referenced by lux::AbsDot(), lux::Material::Bump(), lux::DifferentialGeometry::ComputeDifferentials(), lux::Cross(), lux::Dot(), lux::RealisticCamera::GenerateRay(), lux::BSDF::HasShadingGeometry(), LengthSquared(), lux::DebugIntegrator::Li(), lux::BSDF::LocalToWorld(), lux::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), lux::operator<<(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), serialize(), and lux::TransformAccordingNormal().
float lux::Normal::z |
Definition at line 84 of file normal.h.
Referenced by lux::AbsDot(), lux::Material::Bump(), lux::DifferentialGeometry::ComputeDifferentials(), lux::Cross(), lux::Dot(), lux::RealisticCamera::GenerateRay(), lux::BSDF::HasShadingGeometry(), LengthSquared(), lux::DebugIntegrator::Li(), lux::BSDF::LocalToWorld(), lux::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), lux::operator<<(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), serialize(), and lux::TransformAccordingNormal().