MCPcopy Create free account
hub / github.com/carbonengine/trinity / ExtractVector2

Function ExtractVector2

trinity/Resources/TriGrannyRes.cpp:1898–1909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1896}
1897
1898Vector2 ExtractVector2( const uint8_t* vertex, const std::pair<const granny_data_type_definition*, int32_t>& element )
1899{
1900 vertex += element.second;
1901 if( element.first->Type == GrannyReal16Member )
1902 {
1903 return *reinterpret_cast<const Vector2_16*>( vertex );
1904 }
1905 else
1906 {
1907 return *reinterpret_cast<const Vector2*>( vertex );
1908 }
1909}
1910
1911bool RayTriangleIntersection( float& dist, float& u, float& v, const Vector3& pos, const Vector3& dir, const uint8_t** vertices, const std::pair<const granny_data_type_definition*, int32_t>& position )
1912{

Callers 1

FillResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected