#include <vector.h>
Public Member Functions | |
Vector (float _x=0, float _y=0, float _z=0) | |
Vector (const Point &p) | |
Vector | operator+ (const Vector &v) const |
Vector & | operator+= (const Vector &v) |
Vector | operator- (const Vector &v) const |
Vector & | operator-= (const Vector &v) |
bool | operator== (const Vector &v) const |
Vector | operator* (float f) const |
Vector & | operator*= (float f) |
Vector | operator/ (float f) const |
Vector & | operator/= (float f) |
Vector | operator- () const |
float | operator[] (int i) const |
float & | operator[] (int i) |
float | LengthSquared () const |
float | Length () const |
Vector (const Normal &n) | |
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 35 of file vector.h.
lux::Vector::Vector | ( | float | _x = 0 , |
|
float | _y = 0 , |
|||
float | _z = 0 | |||
) | [inline] |
Definition at line 39 of file vector.h.
Referenced by operator*(), operator+(), operator-(), and operator/().
lux::Vector::Vector | ( | const Point & | p | ) | [inline, explicit] |
Definition at line 102 of file core/geometry/point.h.
lux::Vector::Vector | ( | const Normal & | n | ) | [inline, explicit] |
float lux::Vector::Length | ( | ) | const [inline] |
Definition at line 95 of file vector.h.
References LengthSquared().
Referenced by lux::WaldTriangle::Area(), lux::BaryTriangle::Area(), lux::WaldTriangleMesh::CreateShape(), lux::BaryTriangleMesh::CreateShape(), lux::Normalize(), and lux::DensityRegion::Tau().
float lux::Vector::LengthSquared | ( | ) | const [inline] |
Vector lux::Vector::operator* | ( | float | f | ) | const [inline] |
Vector& lux::Vector::operator*= | ( | float | f | ) | [inline] |
Vector lux::Vector::operator- | ( | ) | const [inline] |
Vector lux::Vector::operator/ | ( | float | f | ) | const [inline] |
Vector& lux::Vector::operator/= | ( | float | f | ) | [inline] |
bool lux::Vector::operator== | ( | const Vector & | v | ) | const [inline] |
float& lux::Vector::operator[] | ( | int | i | ) | [inline] |
float lux::Vector::operator[] | ( | int | i | ) | const [inline] |
void lux::Vector::serialize | ( | Archive & | ar, | |
const unsigned int | version | |||
) | [inline, private] |
float lux::Vector::x |
Definition at line 98 of file vector.h.
Referenced by lux::AbsDot(), lux::IdentityMapping3D::Apply3DTextureMappingOptions(), lux::UnsafeKdTreeAccel::buildTree(), lux::TaBRecKdTreeAccel::buildTree(), lux::CoordinateSystem(), lux::CosineSampleHemisphere(), lux::CosPhi(), lux::SpotLight::CreateLight(), lux::Cross(), lux::CylindricalMapping2D::cylinder(), lux::Anisotropic::D(), lux::Dot(), SkyBxDF::f(), PerspectiveBxDF::f(), lux::Lafortune::f(), lux::RealisticCamera::GenerateRay(), lux::EnvironmentCamera::GenerateSample(), lux::WaldTriangle::Intersect(), lux::UnsafeKdTreeAccel::Intersect(), lux::TaBRecKdTreeAccel::Intersect(), lux::Sphere::Intersect(), lux::Paraboloid::Intersect(), lux::LensComponent::Intersect(), lux::Hyperboloid::Intersect(), lux::Cylinder::Intersect(), lux::Cone::Intersect(), lux::WaldTriangle::IntersectP(), lux::UnsafeKdTreeAccel::IntersectP(), lux::TaBRecKdTreeAccel::IntersectP(), lux::Sphere::IntersectP(), lux::Paraboloid::IntersectP(), lux::LensComponent::IntersectP(), lux::Hyperboloid::IntersectP(), lux::Cylinder::IntersectP(), lux::Cone::IntersectP(), LengthSquared(), lux::BSDF::LocalToWorld(), lux::LookAt(), lux::BBox::MaximumExtent(), operator*(), operator*=(), operator+(), lux::Point::operator+(), operator+=(), lux::Point::operator+=(), operator-(), lux::Point::operator-(), operator-=(), lux::Point::operator-=(), operator/(), operator/=(), lux::operator<<(), operator==(), operator[](), lux::BRDFToBTDF::otherHemisphere(), PerspectiveBxDF::Pdf(), lux::Lafortune::Pdf(), lux::ProjectionLight::Projection(), lux::Rotate(), lux::SpecularTransmission::Sample_f(), lux::SpecularReflection::Sample_f(), lux::Lafortune::Sample_f(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), serialize(), lux::SphericalPhi(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), lux::TransformAccordingNormal(), lux::Translate(), lux::BBox::Volume(), and lux::WaldTriangle::WaldTriangle().
float lux::Vector::y |
Definition at line 98 of file vector.h.
Referenced by lux::AbsDot(), lux::IdentityMapping3D::Apply3DTextureMappingOptions(), lux::UnsafeKdTreeAccel::buildTree(), lux::TaBRecKdTreeAccel::buildTree(), lux::CoordinateSystem(), lux::CosineSampleHemisphere(), lux::SpotLight::CreateLight(), lux::Cross(), lux::CylindricalMapping2D::cylinder(), lux::Anisotropic::D(), lux::Dot(), SkyBxDF::f(), PerspectiveBxDF::f(), lux::Lafortune::f(), lux::RealisticCamera::GenerateRay(), lux::EnvironmentCamera::GenerateSample(), lux::WaldTriangle::Intersect(), lux::UnsafeKdTreeAccel::Intersect(), lux::TaBRecKdTreeAccel::Intersect(), lux::Sphere::Intersect(), lux::Paraboloid::Intersect(), lux::LensComponent::Intersect(), lux::Hyperboloid::Intersect(), lux::Cylinder::Intersect(), lux::Cone::Intersect(), lux::WaldTriangle::IntersectP(), lux::UnsafeKdTreeAccel::IntersectP(), lux::TaBRecKdTreeAccel::IntersectP(), lux::Sphere::IntersectP(), lux::Paraboloid::IntersectP(), lux::LensComponent::IntersectP(), lux::Hyperboloid::IntersectP(), lux::Cylinder::IntersectP(), lux::Cone::IntersectP(), LengthSquared(), lux::BSDF::LocalToWorld(), lux::LookAt(), lux::BBox::MaximumExtent(), operator*(), operator*=(), operator+(), lux::Point::operator+(), operator+=(), lux::Point::operator+=(), operator-(), lux::Point::operator-(), operator-=(), lux::Point::operator-=(), operator/(), operator/=(), lux::operator<<(), operator==(), lux::BRDFToBTDF::otherHemisphere(), PerspectiveBxDF::Pdf(), lux::Lafortune::Pdf(), lux::ProjectionLight::Projection(), lux::Rotate(), lux::SpecularTransmission::Sample_f(), lux::SpecularReflection::Sample_f(), PerspectiveBxDF::Sample_f(), lux::Lafortune::Sample_f(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), lux::GonioPhotometricLight::Scale(), serialize(), lux::SinPhi(), lux::SphericalPhi(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), lux::TransformAccordingNormal(), lux::Translate(), lux::BBox::Volume(), and lux::WaldTriangle::WaldTriangle().
float lux::Vector::z |
Definition at line 98 of file vector.h.
Referenced by lux::AbsDot(), lux::IdentityMapping3D::Apply3DTextureMappingOptions(), lux::PerspectiveCamera::AutoFocus(), lux::UnsafeKdTreeAccel::buildTree(), lux::TaBRecKdTreeAccel::buildTree(), lux::CoordinateSystem(), lux::CosineSampleHemisphere(), lux::CosTheta(), lux::SpotLight::CreateLight(), lux::Cross(), lux::CylindricalMapping2D::cylinder(), lux::Dot(), SunBxDF::f(), lux::SpecularTransmission::f(), SkyBxDF::f(), PerspectiveBxDF::f(), lux::Lafortune::f(), lux::SpotLight::Falloff(), lux::RealisticCamera::GenerateRay(), lux::PerspectiveCamera::GenerateRay(), lux::OrthoCamera::GenerateRay(), lux::EnvironmentCamera::GenerateSample(), lux::WaldTriangle::Intersect(), lux::UnsafeKdTreeAccel::Intersect(), lux::TaBRecKdTreeAccel::Intersect(), lux::Sphere::Intersect(), lux::Paraboloid::Intersect(), lux::LensComponent::Intersect(), lux::Hyperboloid::Intersect(), lux::Disk::Intersect(), lux::Cone::Intersect(), lux::WaldTriangle::IntersectP(), lux::UnsafeKdTreeAccel::IntersectP(), lux::TaBRecKdTreeAccel::IntersectP(), lux::Sphere::IntersectP(), lux::Paraboloid::IntersectP(), lux::LensComponent::IntersectP(), lux::Hyperboloid::IntersectP(), lux::Disk::IntersectP(), lux::Cone::IntersectP(), lux::PerspectiveCamera::IsVisibleFromEyes(), LengthSquared(), lux::BSDF::LocalToWorld(), lux::LookAt(), lux::BBox::MaximumExtent(), operator*(), operator*=(), operator+(), lux::Point::operator+(), operator+=(), lux::Point::operator+=(), operator-(), lux::Point::operator-(), operator-=(), lux::Point::operator-=(), operator/(), operator/=(), lux::operator<<(), operator==(), lux::BRDFToBTDF::otherHemisphere(), SunBxDF::Pdf(), PerspectiveBxDF::Pdf(), lux::Lafortune::Pdf(), lux::FresnelBlend::Pdf(), lux::CookTorrance::Pdf(), lux::BxDF::Pdf(), lux::Blinn::Pdf(), lux::ProjectionLight::Projection(), lux::BxDF::rho(), lux::Rotate(), lux::SameHemisphere(), lux::WardIsotropic::Sample_f(), lux::SpecularTransmission::Sample_f(), lux::ArchitecturalReflection::Sample_f(), lux::SpecularReflection::Sample_f(), PerspectiveBxDF::Sample_f(), lux::Lafortune::Sample_f(), lux::FresnelBlend::Sample_f(), lux::CookTorrance::Sample_f(), lux::BxDF::Sample_f(), lux::Blinn::Sample_f(), lux::Beckmann::Sample_f(), lux::SkyLight::Sample_L(), lux::InfiniteAreaLight::Sample_L(), lux::GonioPhotometricLight::Scale(), serialize(), lux::SinTheta(), lux::SphericalTheta(), lux::TaBRecKdTreeAccel::TaBRecKdTreeAccel(), lux::TransformAccordingNormal(), lux::Translate(), lux::BBox::Volume(), and lux::WaldTriangle::WaldTriangle().