mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-11 21:08:44 +00:00
Replace tabs with spaces and update year of copyright notices (#927)
* Update year of copyright notices
* Fix mistake in comment
* Fix typo ("algorythms")
* Replace tabs with spaces
* Remove trailing whitespace and fix mistake in comment
* Fix ExportImageAsCode missing comment rectangle corner
* Replace tab with spaces
* Replace tabs with spaces
This commit is contained in:
@@ -2480,11 +2480,11 @@ bool CheckCollisionSpheres(Vector3 centerA, float radiusA, Vector3 centerB, floa
|
||||
// Simple way to check for collision, just checking distance between two points
|
||||
// Unfortunately, sqrtf() is a costly operation, so we avoid it with following solution
|
||||
/*
|
||||
float dx = centerA.x - centerB.x; // X distance between centers
|
||||
float dy = centerA.y - centerB.y; // Y distance between centers
|
||||
float dz = centerA.z - centerB.z; // Y distance between centers
|
||||
float dx = centerA.x - centerB.x; // X distance between centers
|
||||
float dy = centerA.y - centerB.y; // Y distance between centers
|
||||
float dz = centerA.z - centerB.z; // Z distance between centers
|
||||
|
||||
float distance = sqrtf(dx*dx + dy*dy + dz*dz); // Distance between centers
|
||||
float distance = sqrtf(dx*dx + dy*dy + dz*dz); // Distance between centers
|
||||
|
||||
if (distance <= (radiusA + radiusB)) collision = true;
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user