Static methods
staticinsideIncircle(pa:Point, pb:Point, pc:Point, pd:Point):Bool
Requirement:
1. a, b and c form a triangle.
2. a and d is know to be on opposite side of bc
d is outside B if orient2d(a,b,d) or orient2d(c,a,d) is CW
This preknowledge gives us a way to optimize the incircle test
1. a, b and c form a triangle.
2. a and d is know to be on opposite side of bc
a
+
/ \
/ \
b/ \c
+-------+
/ d \
/ \
Fact: d has to be in area B to have a chance to be inside the circle formed by
a,b and cd is outside B if orient2d(a,b,d) or orient2d(c,a,d) is CW
This preknowledge gives us a way to optimize the incircle test
Parameters:
pa |
|
|---|---|
pb |
|
pc |
|
pd |
|
Returns:
true if d is inside circle, false if on circle edge
