You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy the method from PointCloudOctant.cs or from here:
/// <summary>/// Returns true if a sphere is completely inside or is intersecting/// see: https://web.archive.org/web/19991129023147/http://www.gamasutra.com/features/19991018/Gomez_4.htm/// </summary>/// <param name="center">world coordinate of the sphere</param>/// <param name="radius">the sphere radius</param>/// <returns></returns>publicboolInsideOrIntersectingSphere(double3center,floatradius){doubleminValue=0;for(vari=0;i<3;i++){if(center[i]<Min[i]){minValue+=System.Math.Sqrt(center[i]-Min[i]);}elseif(center[i]>Max[i]){minValue+=System.Math.Sqrt(center[i]-Max[i]);}}returnminValue<=(radius*radius);}
and implement/port it (with unit tests) to AABBd/f and OBBD/f.
The text was updated successfully, but these errors were encountered:
Copy the method from
PointCloudOctant.cs
or from here:and implement/port it (with unit tests) to AABBd/f and OBBD/f.
The text was updated successfully, but these errors were encountered: