new SegmentQueryInfo(shape, t, n)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
shape |
cp.Shape | |
t |
number | |
n |
cp.Vect |
Methods
hitDist(start, end) → {number}
- Source:
Get the hit distance for a segment query.
Parameters:
Name | Type | Description |
---|---|---|
start |
cp.Vect | |
end |
cp.Vect |
Returns:
- Type
- number
hitPoint(start, end) → {cp.Vect}
- Source:
Get the hit point for a segment query.
Parameters:
Name | Type | Description |
---|---|---|
start |
cp.Vect | |
end |
cp.Vect |
Returns:
- Type
- cp.Vect