MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetCenterOfSurface

Function GetCenterOfSurface

editor/rad_init.cpp:301–301  ·  view source on GitHub ↗

Finds the world coordinate center of a surface

Source from the content-addressed store, hash-verified

299
300// Finds the world coordinate center of a surface
301void GetCenterOfSurface(rad_surface *sp, vector *dest) { vm_GetCentroid(dest, sp->verts, sp->num_verts); }
302
303// Finds the world coordinate center of a surface
304void GetCenterOfElement(rad_element *ep, vector *dest) { vm_GetCentroid(dest, ep->verts, ep->num_verts); }

Callers 4

BuildTransformFunction · 0.85

Calls 1

vm_GetCentroidFunction · 0.50

Tested by

no test coverage detected