Skip to content

Commit eee67d3

Browse files
committed
Merge pull request #1 from cserret/patch-1
Update README.md
2 parents 770feb6 + ab57e28 commit eee67d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Requires an angle to be provided in radians. You may optionally specify the numb
9595
**Const.getRectForPointRing** `var result = Const.getRectForPointRing( [points] );`
9696
Takes an array of `Point` objects; returns a `Rect` object of their bounding box.
9797

98-
**Const.hitTestRect** `var result = Const.getRectForPointRing( pointP, rect );`
98+
**Const.hitTestRect** `var result = Const.hitTestRect( pointP, rect );`
9999
Takes target point P and a `Rect` object; returns `true` if the point falls within the rectangle.
100100

101101
**Const.hitTestPointRing** `var result = Const.hitTestPointRing( pointP, [points, ...] );`
@@ -274,4 +274,4 @@ In the above example, we have a node graph defined by data attributes with no co
274274
var path = grid.findPath('sister', 'friend', weightFunct, estimateFunct);
275275
// result array: ["sister" > "brother" > "friend"]
276276

277-
The above process works by replacing Constellation's default *weight* and *estimate* functions. A weight function measures the accrued cost of each new grid segment, while the estimate function measures a best-case cost for reaching the goal. By default, Constellation uses its geometry `distance` function to measure the cost of grid segments. However, you're welcome to override this process and measure grid searches against custom meta data.
277+
The above process works by replacing Constellation's default *weight* and *estimate* functions. A weight function measures the accrued cost of each new grid segment, while the estimate function measures a best-case cost for reaching the goal. By default, Constellation uses its geometry `distance` function to measure the cost of grid segments. However, you're welcome to override this process and measure grid searches against custom meta data.

0 commit comments

Comments
 (0)