HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
homogeneous.h File Reference
#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"
+ Include dependency graph for homogeneous.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Utility functions for GfVec4f and GfVec4d as homogeneous vectors

Definition in file homogeneous.h.

Function Documentation

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.

GF_API GfVec4d GfGetHomogenized ( const GfVec4d v)
GF_API GfVec4f GfHomogeneousCross ( const GfVec4f a,
const GfVec4f b 
)

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.

GF_API GfVec4d GfHomogeneousCross ( const GfVec4d a,
const GfVec4d b 
)

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.

GfVec3f GfProject ( const GfVec4f v)
inline

Projects homogeneous v into Euclidean space and returns the result as a Vec3f.

Definition at line 65 of file homogeneous.h.

GfVec3d GfProject ( const GfVec4d v)
inline

Projects homogeneous v into Euclidean space and returns the result as a Vec3d.

Definition at line 72 of file homogeneous.h.