HDK
|
#include "pxr/pxr.h"
#include "pxr/base/gf/vec3d.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/vec4d.h"
#include "pxr/base/gf/vec4f.h"
#include "pxr/base/gf/api.h"
Go to the source code of this file.
Functions | |
PXR_NAMESPACE_OPEN_SCOPE GF_API GfVec4f | GfGetHomogenized (const GfVec4f &v) |
GF_API GfVec4f | GfHomogeneousCross (const GfVec4f &a, const GfVec4f &b) |
GF_API GfVec4d | GfGetHomogenized (const GfVec4d &v) |
GF_API GfVec4d | GfHomogeneousCross (const GfVec4d &a, const GfVec4d &b) |
GfVec3f | GfProject (const GfVec4f &v) |
GfVec3d | GfProject (const GfVec4d &v) |
Utility functions for GfVec4f and GfVec4d as homogeneous vectors
Definition in file homogeneous.h.
PXR_NAMESPACE_OPEN_SCOPE GF_API GfVec4f GfGetHomogenized | ( | const GfVec4f & | v | ) |
Returns a vector which is v
homogenized. If the fourth element of v
is 0, it is set to 1.
Homogenizes a
and b
and then performs the cross product on the first three elements of each. Returns the cross product as a homogenized vector.
Homogenizes a
and b
and then performs the cross product on the first three elements of each. Returns the cross product as a homogenized vector.
Projects homogeneous v
into Euclidean space and returns the result as a Vec3f.
Definition at line 65 of file homogeneous.h.
Projects homogeneous v
into Euclidean space and returns the result as a Vec3d.
Definition at line 72 of file homogeneous.h.