瀏覽代碼

required string type input

horusscope 6 年之前
父節點
當前提交
92ed62a905
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {