This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
homogeneous.h File Reference

Utility functions for GfVec4f and GfVec4d as homogeneous vectors. More...

+ 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

GF_API GfVec4f GfGetHomogenized (const GfVec4f &v)
 Returns a vector which is v homogenized.
 
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.
 
GF_API GfVec4d GfGetHomogenized (const GfVec4d &v)
 
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.
 
GfVec3f GfProject (const GfVec4f &v)
 Projects homogeneous v into Euclidean space and returns the result as a Vec3f.
 
GfVec3d GfProject (const GfVec4d &v)
 Projects homogeneous v into Euclidean space and returns the result as a Vec3d.
 

Detailed Description

Utility functions for GfVec4f and GfVec4d as homogeneous vectors.

Definition in file homogeneous.h.

Function Documentation

◆ GfProject() [1/2]

GfVec3d GfProject ( const GfVec4d v)
inline

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

Definition at line 55 of file homogeneous.h.

◆ GfProject() [2/2]

GfVec3f GfProject ( const GfVec4f v)
inline

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

Definition at line 48 of file homogeneous.h.