Bläddra i källkod

required string type input

horusscope 6 år sedan
förälder
incheckning
92ed62a905
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Culling/ray.ts

+ 1 - 1
src/Culling/ray.ts

@@ -250,7 +250,7 @@ export class Ray {
      * @param axis to check 'x' | 'y' | 'z'
      * @returns a vector containing the coordinates where 'axis' is equal to zero, or false if there is no intercept.
      */
-    public intersectsAxis(axis) {
+    public intersectsAxis(axis: string) {
           var t = this.origin[axis] / this.direction[axis]
           if(t > 0) return false
           const stepOrigin = function(t, axis) {