#include <geometry.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 |
Definition at line 30 of file geometry.h.
Vector::Vector | ( | float | _x = 0 , |
|
float | _y = 0 , |
|||
float | _z = 0 | |||
) | [inline] |
Definition at line 33 of file geometry.h.
Referenced by CoordinateSystem(), Cross(), and SphericalDirection().
Vector::Vector | ( | const Point & | p | ) | [inline, explicit] |
Definition at line 285 of file geometry.h.
Vector::Vector | ( | const Normal & | n | ) | [inline, explicit] |
Definition at line 349 of file geometry.h.
bool Vector::operator== | ( | const Vector & | v | ) | const [inline] |
Vector Vector::operator* | ( | float | f | ) | const [inline] |
Definition at line 56 of file geometry.h.
Vector& Vector::operator*= | ( | float | f | ) | [inline] |
Definition at line 60 of file geometry.h.
Vector Vector::operator/ | ( | float | f | ) | const [inline] |
Vector& Vector::operator/= | ( | float | f | ) | [inline] |
Vector Vector::operator- | ( | ) | const [inline] |
Definition at line 76 of file geometry.h.
float Vector::operator[] | ( | int | i | ) | const [inline] |
float& Vector::operator[] | ( | int | i | ) | [inline] |
float Vector::LengthSquared | ( | ) | const [inline] |
float Vector::Length | ( | ) | const [inline] |
Definition at line 89 of file geometry.h.
Referenced by Triangle::Area(), CreateShape(), Normalize(), and DensityRegion::Tau().
float Vector::x |
Definition at line 92 of file geometry.h.
Referenced by AbsDot(), KdTreeAccel::buildTree(), CoordinateSystem(), CosineSampleHemisphere(), CosPhi(), CreateLight(), Cross(), CylindricalMapping2D::cylinder(), Anisotropic::D(), Dot(), Lafortune::f(), Sphere::Intersect(), Paraboloid::Intersect(), KdTreeAccel::Intersect(), Hyperboloid::Intersect(), Cylinder::Intersect(), Cone::Intersect(), Sphere::IntersectP(), Paraboloid::IntersectP(), KdTreeAccel::IntersectP(), Hyperboloid::IntersectP(), Cylinder::IntersectP(), Cone::IntersectP(), BSDF::LocalToWorld(), LookAt(), BBox::MaximumExtent(), Transform::operator()(), Point::operator+(), operator+(), Point::operator+=(), operator+=(), Point::operator-(), operator-(), Point::operator-=(), operator-=(), operator<<(), operator==(), BRDFToBTDF::otherHemisphere(), ProjectionLight::Projection(), Rotate(), SpecularTransmission::Sample_f(), SpecularReflection::Sample_f(), InfiniteAreaLight::Sample_L(), SphericalPhi(), ParamSet::ToString(), Translate(), and BBox::Volume().
float Vector::y |
Definition at line 92 of file geometry.h.
Referenced by AbsDot(), KdTreeAccel::buildTree(), CoordinateSystem(), CosineSampleHemisphere(), CreateLight(), Cross(), CylindricalMapping2D::cylinder(), Anisotropic::D(), Dot(), Lafortune::f(), Sphere::Intersect(), Paraboloid::Intersect(), KdTreeAccel::Intersect(), Hyperboloid::Intersect(), Cylinder::Intersect(), Cone::Intersect(), Sphere::IntersectP(), Paraboloid::IntersectP(), KdTreeAccel::IntersectP(), Hyperboloid::IntersectP(), Cylinder::IntersectP(), Cone::IntersectP(), BSDF::LocalToWorld(), LookAt(), BBox::MaximumExtent(), Transform::operator()(), Point::operator+(), operator+(), Point::operator+=(), operator+=(), Point::operator-(), operator-(), Point::operator-=(), operator-=(), operator<<(), operator==(), BRDFToBTDF::otherHemisphere(), ProjectionLight::Projection(), Rotate(), SpecularTransmission::Sample_f(), SpecularReflection::Sample_f(), InfiniteAreaLight::Sample_L(), GonioPhotometricLight::Scale(), SinPhi(), SphericalPhi(), ParamSet::ToString(), Translate(), and BBox::Volume().
float Vector::z |
Definition at line 92 of file geometry.h.
Referenced by AbsDot(), KdTreeAccel::buildTree(), CoordinateSystem(), CosineSampleHemisphere(), CosTheta(), CreateLight(), Cross(), CylindricalMapping2D::cylinder(), Dot(), Lafortune::f(), SpotLight::Falloff(), PerspectiveCamera::GenerateRay(), OrthoCamera::GenerateRay(), Sphere::Intersect(), Paraboloid::Intersect(), KdTreeAccel::Intersect(), Hyperboloid::Intersect(), Disk::Intersect(), Cone::Intersect(), Sphere::IntersectP(), Paraboloid::IntersectP(), KdTreeAccel::IntersectP(), Hyperboloid::IntersectP(), Disk::IntersectP(), Cone::IntersectP(), BSDF::LocalToWorld(), LookAt(), BBox::MaximumExtent(), Transform::operator()(), Point::operator+(), operator+(), Point::operator+=(), operator+=(), Point::operator-(), operator-(), Point::operator-=(), operator-=(), operator<<(), operator==(), BRDFToBTDF::otherHemisphere(), FresnelBlend::Pdf(), Blinn::Pdf(), BxDF::Pdf(), ProjectionLight::Projection(), BxDF::rho(), Rotate(), SameHemisphere(), FresnelBlend::Sample_f(), Blinn::Sample_f(), BxDF::Sample_f(), SpecularReflection::Sample_f(), InfiniteAreaLight::Sample_L(), GonioPhotometricLight::Scale(), SinTheta(), SphericalTheta(), ParamSet::ToString(), Translate(), and BBox::Volume().