Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-12-29 22:52:25 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2014-01-09 18:49:45 +0400
commitc1da901a72dc57b4f6cb202c54d21efaa3e28a3c (patch)
tree40e9d0cbee219015b5ac177e8bf88ff9e55dfeb3 /src/SubPic/CoordGeom.h
parent1c2339e0304bd80944584a8f7280190423ec995e (diff)
Cleanup.
Diffstat (limited to 'src/SubPic/CoordGeom.h')
-rw-r--r--src/SubPic/CoordGeom.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/SubPic/CoordGeom.h b/src/SubPic/CoordGeom.h
index a5ba83f74..fd4a5ab67 100644
--- a/src/SubPic/CoordGeom.h
+++ b/src/SubPic/CoordGeom.h
@@ -41,15 +41,15 @@ public:
Vector Normal(Vector& a, Vector& b);
float Angle(Vector& a, Vector& b);
float Angle(const Vector& a);
- void Angle(float& u, float& v); // returns spherical coords in radian, -M_PI_2 <= u <= M_PI_2, -M_PI <= v <= M_PI
- Vector Angle(); // does like prev., returns 'u' in 'ret.x', and 'v' in 'ret.y'
+ void Angle(float& u, float& v); // returns spherical coords in radian, -M_PI_2 <= u <= M_PI_2, -M_PI <= v <= M_PI
+ Vector Angle(); // does like prev., returns 'u' in 'ret.x', and 'v' in 'ret.y'
Vector Unit();
Vector& Unitalize();
float Length();
- float Sum(); // x + y + z
- float CrossSum(); // xy + xz + yz
- Vector Cross(); // xy, xz, yz
+ float Sum(); // x + y + z
+ float CrossSum(); // xy + xz + yz
+ Vector Cross(); // xy, xz, yz
Vector Pow(float exp);
Vector& Min(const Vector& a);
@@ -63,8 +63,8 @@ public:
Vector operator - ();
float& operator [](size_t i);
- float operator | (const Vector& v); // dot
- Vector operator % (const Vector& v); // cross
+ float operator | (const Vector& v); // dot
+ Vector operator % (const Vector& v); // cross
bool operator == (const Vector& v) const;
bool operator != (const Vector& v) const;
@@ -98,8 +98,8 @@ public:
Ray(Vector& p, Vector& d);
void Set(const Vector& p, const Vector& d);
- float GetDistanceFrom(Ray& r); // r = plane
- float GetDistanceFrom(Vector& v); // v = point
+ float GetDistanceFrom(Ray& r); // r = plane
+ float GetDistanceFrom(Vector& v); // v = point
Vector operator [](float t);
};
@@ -127,16 +127,16 @@ public:
void Initalize();
void Initalize(Ray& r, Vector& s, bool isWorldToLocal = true);
- void operator *= (const Vector& s); // scale
- void operator += (const Vector& t); // translate
- void operator <<= (const Vector& r); // rotate
+ void operator *= (const Vector& s); // scale
+ void operator += (const Vector& t); // translate
+ void operator <<= (const Vector& r); // rotate
- void operator /= (const Vector& s); // scale
- void operator -= (Vector& t); // translate
- void operator >>= (Vector& r); // rotate
+ void operator /= (const Vector& s); // scale
+ void operator -= (Vector& t); // translate
+ void operator >>= (Vector& r); // rotate
// transformations
- Vector operator < (Vector& n); // normal
- Vector operator << (const Vector& v); // vector
- Ray operator << (Ray& r); // ray
+ Vector operator < (Vector& n); // normal
+ Vector operator << (const Vector& v); // vector
+ Ray operator << (Ray& r); // ray
};