15 Vector3d(
double x,
double y,
double z);
17 void set(
double x,
double y,
double z);
18 void setComponent(
int i,
double val);
30 static int largestAbsComponent(
Vector3d v);
32 inline double getX()
const {
return x; }
33 inline double getY()
const {
return y; }
34 inline double getZ()
const {
return z; }
38 return Vector3d(y * other.z - z * other.y, z * other.x - x * other.z, x * other.y - y * other.x);
48 return Vector3d(x + other.x, y + other.y, z + other.z);
53 return Vector3d(x - other.x, y - other.y, z - other.z);
58 return Vector3d(x * scalar, y * scalar, z * scalar);
63 return Vector3d(x / scalar, y / scalar, z / scalar);