Skip to content

Commit

Permalink
New transpilation
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharrtell committed May 5, 2020
1 parent 2f41a90 commit 7a47c53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/locationtech/jts/algorithm/InteriorPointArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Coordinate from '../geom/Coordinate'
import Polygon from '../geom/Polygon'
import Double from '../../../../java/lang/Double'
import GeometryCollection from '../geom/GeometryCollection'
import OverlayOp from '../operation/overlay/OverlayOp'
export default class InteriorPointArea {
constructor () {
InteriorPointArea.constructor_.apply(this, arguments)
Expand All @@ -25,7 +26,7 @@ export default class InteriorPointArea {
width = 0
intPt = bisector.getCoordinate()
} else {
const intersections = bisector.intersection(geometry)
const intersections = OverlayOp.intersection(bisector, geometry)
const widestIntersection = this.widestGeometry(intersections)
width = widestIntersection.getEnvelopeInternal().getWidth()
intPt = InteriorPointArea.centre(widestIntersection.getEnvelopeInternal())
Expand Down

0 comments on commit 7a47c53

Please sign in to comment.