#include <vec3d.h>
Vec3D::Vec3D |
( |
float |
x0 = 0.0f , |
|
|
float |
y0 = 0.0f , |
|
|
float |
z0 = 0.0f |
|
) |
| |
|
inline |
30 :
x(x0),
y(y0),
z(z0) {}
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
32 :
x(v.
x),
y(v.
y),
z(v.
z) {}
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
float Vec3D::length |
( |
| ) |
const |
|
inline |
106 return std::sqrt(
x*
x+
y*
y+
z*
z);
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
float Vec3D::lengthSquared |
( |
| ) |
const |
|
inline |
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
Vec3D& Vec3D::normalize |
( |
| ) |
|
|
inline |
float length() const
Definition: vec3d.h:104
Vec3D & operator*=(float d)
Definition: vec3d.h:91
Vec3D::operator float * |
( |
| ) |
|
|
inline |
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
55 return x*v.
x +
y*v.
y +
z*v.
z;
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
Vec3D Vec3D::operator* |
( |
float |
d | ) |
const |
|
inline |
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
Vec3D& Vec3D::operator*= |
( |
float |
d | ) |
|
|
inline |
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
Vec3D Vec3D::operator~ |
( |
| ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const Vec3D & |
v |
|
) |
| |
|
friend |
130 out << v.
x <<
" " << v.
y <<
" " << v.
z;
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
Vec3D & |
v |
|
) |
| |
|
friend |
124 in >> v.
x >> v.
y >> v.
z;
float x
Definition: vec3d.h:28
float z
Definition: vec3d.h:28
float y
Definition: vec3d.h:28
The documentation for this class was generated from the following file: