#include <Vec3f.h>
Inheritance diagram for nvmath::Vec3f:
Public Methods | |
NVSG_API | Vec3f (void) |
Default constructor. More... | |
NVSG_API | Vec3f (float x, float y, float z) |
Constructor using three floats. More... | |
NVSG_API | Vec3f (const Vecnf< 3 > &v) |
Copy constructor. More... | |
NVSG_API | Vec3f (const Vecnf< 4 > &v) |
Constructor by a Vec4f. More... | |
NVSG_API Vec3f & | operator= (const Vec4f &v) |
Assignment operator. More... | |
NVSG_API Vec3f | operator- (void) const |
Negation operator. More... | |
NVSG_API void | set (float x, float y, float z) |
Set the vector with three float values. More... | |
Related Functions | |
(Note that these are not member functions.) | |
Vec3f | normalize (const Vec3f &v) |
void | normalizeV (const std::vector< Vec3f > &vecIn, std::vector< Vec3f > &vecOut) |
Vec3f | operator * (float f, const Vec3f &v) |
Vec3f | operator^ (const Vecnf< 3 > &v0, const Vecnf< 3 > &v1) |
bool | areCollinear (const Vec3f &v0, const Vec3f &v1) |
NVSG_API void | smoothNormals (const std::vector< Vec3f > &vertices, const Sphere3f &sphere, float creaseAngle, std::vector< Vec3f > &normals) |
|
Default constructor. For performance reasons no initialization is performed. |
|
Constructor using three floats. A vector with the given values is constructed.
|
|
Copy constructor.
|
|
Constructor by a Vec4f. Ignores fourth component of constructing vector.
|
|
Assignment operator. Ignores the fourth component of the assigning vector.
|
|
Negation operator.
Reimplemented from nvmath::Vecnf< 3 >. |
|
Set the vector with three float values.
|
|
Calculate the normalized vector of a given one.
|
|
Calculate the normalized vector of a vector of Vec3fs |
|
Multiplication of a scalar with a vector.
|
|
Calculation of the cross product of v0 with v1. The cross product of two vectors is a vector that is orthogonal to both arguments
|
|
Test two Vec3f for collinearity. The test is done by testing the cross product (operator^) of the two objects being less than some epsilon.
|
|
Determine smoothed normals for a set of vertices. |