Skip to content

Commit

Permalink
Fix documentation for a recursive parameter (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster0 authored Feb 16, 2022
1 parent 2a81596 commit a2f8aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/three/src/core/Raycaster.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Raycaster {
/**
* Checks all intersection between the ray and the object with or without the descendants. Intersections are returned sorted by distance, closest first.
* @param object The object to check for intersection with the ray.
* @param recursive If true, it also checks all descendants. Otherwise it only checks intersecton with the object. Default is false.
* @param recursive If true, it also checks all descendants. Otherwise it only checks intersecton with the object. Default is true.
* @param optionalTarget (optional) target to set the result. Otherwise a new Array is instantiated. If set, you must clear this array prior to each call (i.e., array.length = 0;).
*/
intersectObject<TIntersected extends Object3D>(
Expand All @@ -109,7 +109,7 @@ export class Raycaster {
* Intersections are returned sorted by distance, closest first.
* Intersections are of the same form as those returned by .intersectObject.
* @param objects The objects to check for intersection with the ray.
* @param recursive If true, it also checks all descendants of the objects. Otherwise it only checks intersecton with the objects. Default is false.
* @param recursive If true, it also checks all descendants of the objects. Otherwise it only checks intersecton with the objects. Default is true.
* @param optionalTarget (optional) target to set the result. Otherwise a new Array is instantiated. If set, you must clear this array prior to each call (i.e., array.length = 0;).
*/
intersectObjects<TIntersected extends Object3D>(
Expand Down

0 comments on commit a2f8aae

Please sign in to comment.