 |
RigsofRods
2023.09
Soft-body Physics Simulation
|
Go to the documentation of this file.
33 Vec3(
float _x,
float _y,
float _z) :
x(_x),
y(_y),
z(_z) {}
34 Vec3(
const Ogre::Vector3& v) {
x = v.x;
y = v.y;
z = v.z; }
46 operator Ogre::Vector3()
const {
return Ogre::Vector3(
x,
y,
z); }
Vec3 & operator/=(float f)
Vec3 operator/(float f) const
float squaredLength() const
float dotProduct(const Vec3 &b) const
Vec3 crossProduct(const Vec3 &b) const
Vec3 & operator*=(float f)
Designed to work smoothly with optimizations disabled.
Vec3 operator-(const Vec3 &b) const
Vec3 & operator-=(const Vec3 &b)
Vec3(float _x, float _y, float _z)
Vec3 operator*(float f) const
Vec3 operator*(float f, const Vec3 &v)
Vec3(const Ogre::Vector3 &v)
Vec3 & operator+=(const Vec3 &b)
Vec3 operator+(const Vec3 &b) const