Skip to content

Commit c656eef

Browse files
authored
Update BuildingShapeUtils.js
1 parent 038254f commit c656eef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,12 @@ class BuildingShapeUtils extends ShapeUtils {
344344
}
345345

346346
/**
347-
* Count the number of times that a line horizontal from point intersects shape
347+
* Is the given point within the given shape?
348348
*
349-
* if an odd number are crossed, it is inside.
350-
* todo, test holes
351-
* Test edge conditions.
349+
* @param {THREE.Shape} shape - the shape
350+
* @param {[number, number]} point - an x, y pair.
351+
*
352+
* @return {boolean}
352353
*/
353354
static surrounds(shape, point) {
354355
var count = 0;

0 commit comments

Comments
 (0)