From 9cd09f2fd131691755b14b0a2a1abcc3d5f26e18 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 3 Jan 2025 17:53:46 +0000 Subject: [PATCH] github web editor is a piece of excrement --- src/VoxelRayTrace.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/VoxelRayTrace.php b/src/VoxelRayTrace.php index b54c83b..2a8cf2b 100644 --- a/src/VoxelRayTrace.php +++ b/src/VoxelRayTrace.php @@ -119,13 +119,13 @@ public static function betweenPoints(Vector3 $start, Vector3 $end) : \Generator{ } /** - * Used to decide which direction to move in first when beginning a ray trace. + * Used to decide which direction to move in first when beginning a ray trace. * - * Examples: + * Examples: * s=0.25, ds=0.5 -> 0.25 + 1.5(0.5) = 1 -> returns 1.5 - * s=0.25, ds=-0.5 -> 0.25 + 0.5(-0.5) = 0 -> returns 0.5 + * s=0.25, ds=-0.5 -> 0.25 + 0.5(-0.5) = 0 -> returns 0.5 * s=1 ds=0.5 -> 1 + 2(0.5) = 2 -> returns 2 - * s=1 ds=-0.5 -> 1 + 0(-0.5) = 1 -> returns 0 (ds is negative and any subtraction will change 1 to 0.x) + * s=1 ds=-0.5 -> 1 + 0(-0.5) = 1 -> returns 0 (ds is negative and any subtraction will change 1 to 0.x) * * @param float $s Starting coordinate * @param float $ds Direction vector component of the relevant axis