소스 검색

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) {