Skip to content

Commit 9cd09f2

Browse files
committed
github web editor is a piece of excrement
1 parent c22fa06 commit 9cd09f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/VoxelRayTrace.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ public static function betweenPoints(Vector3 $start, Vector3 $end) : \Generator{
119119
}
120120

121121
/**
122-
* Used to decide which direction to move in first when beginning a ray trace.
122+
* Used to decide which direction to move in first when beginning a ray trace.
123123
*
124-
* Examples:
124+
* Examples:
125125
* s=0.25, ds=0.5 -> 0.25 + 1.5(0.5) = 1 -> returns 1.5
126-
* s=0.25, ds=-0.5 -> 0.25 + 0.5(-0.5) = 0 -> returns 0.5
126+
* s=0.25, ds=-0.5 -> 0.25 + 0.5(-0.5) = 0 -> returns 0.5
127127
* s=1 ds=0.5 -> 1 + 2(0.5) = 2 -> returns 2
128-
* s=1 ds=-0.5 -> 1 + 0(-0.5) = 1 -> returns 0 (ds is negative and any subtraction will change 1 to 0.x)
128+
* s=1 ds=-0.5 -> 1 + 0(-0.5) = 1 -> returns 0 (ds is negative and any subtraction will change 1 to 0.x)
129129
*
130130
* @param float $s Starting coordinate
131131
* @param float $ds Direction vector component of the relevant axis

0 commit comments

Comments
 (0)