MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / ToVector2

Function ToVector2

Hydrogent/interface/GfTypeConversions.hpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79template <typename T>
80Vector2<T> ToVector2(const pxr::GfVec2f& v)
81{
82 return Vector2<T>{
83 static_cast<T>(v[0]),
84 static_cast<T>(v[1]),
85 };
86}
87
88template <typename T>
89Vector2<T> ToVector2(const pxr::GfVec2d& v)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected