MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetPatchCoord

Method GetPatchCoord

Source/Engine/Terrain/Terrain.cpp:350–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void Terrain::GetPatchCoord(int32 patchIndex, Int2& patchCoord) const
351{
352 const auto patch = GetPatch(patchIndex);
353 if (patch)
354 {
355 patchCoord.X = patch->GetX();
356 patchCoord.Y = patch->GetZ();
357 }
358}
359
360void Terrain::GetPatchBounds(int32 patchIndex, BoundingBox& bounds) const
361{

Callers 3

SetCursorMethod · 0.80
UpdateMethod · 0.80
SetCursorMethod · 0.80

Calls 3

GetXMethod · 0.80
GetZMethod · 0.80
GetPatchFunction · 0.70

Tested by

no test coverage detected