Encapsulates a 3D surface normal. More...
#include <normal3.h>
Public Member Functions | |
| normal3 () | |
| normal3 (const double x, const double y, const double z) | |
| normal3 & | operator+= (const normal3 &v) |
| normal3 & | operator-= (const normal3 &v) |
| normal3 & | operator*= (const double d) |
| normal3 & | operator/= (const double d) |
| double & | operator[] (const unsigned int i) |
| double | operator[] (const unsigned int i) const |
| double | length () const |
| Returns the normal length. | |
| double | length2 () const |
| Returns the squared normal length. | |
Public Attributes | |
| double | n [3] |
| Stores the normal values. | |
Friends | |
| std::ostream & | operator<< (std::ostream &Stream, const normal3 &RHS) |
| std::istream & | operator>> (std::istream &Stream, normal3 &RHS) |
Encapsulates a 3D surface normal.
| k3d::normal3::normal3 | ( | ) | [inline] |
References n.
| k3d::normal3::normal3 | ( | const double | x, | |
| const double | y, | |||
| const double | z | |||
| ) | [inline] |
References n.
| double k3d::normal3::length | ( | ) | const [inline] |
Returns the normal length.
References length2().
Referenced by k3d::length(), k3d::normalize(), and module::opengl::painters::detail::face_normals::on_face_end().
| double k3d::normal3::length2 | ( | ) | const [inline] |
Returns the squared normal length.
References n.
Referenced by length(), module::selection::select_degenerate_faces::on_update_selection(), and module::polyhedron::detail::subdivide_edges().
| normal3& k3d::normal3::operator/= | ( | const double | d | ) | [inline] |
References n, and return_val_if_fail.
| double k3d::normal3::operator[] | ( | const unsigned int | i | ) | const [inline] |
References n.
| double& k3d::normal3::operator[] | ( | const unsigned int | i | ) | [inline] |
References n.
| std::ostream& operator<< | ( | std::ostream & | Stream, | |
| const normal3 & | RHS | |||
| ) | [friend] |
| std::istream& operator>> | ( | std::istream & | Stream, | |
| normal3 & | RHS | |||
| ) | [friend] |
| double k3d::normal3::n[3] |
Stores the normal values.
Referenced by length2(), normal3(), k3d::gl::normal3d(), k3d::operator!=(), k3d::operator*(), operator*=(), k3d::operator+(), operator+=(), operator-=(), k3d::operator/(), operator/=(), k3d::operator==(), operator[](), k3d::operator^(), k3d::difference::test(), k3d::to_point(), and k3d::to_vector().
1.6.3