segmentQuery method
(bool, SegmentQueryInfo)
segmentQuery({
- required Vector2 a,
- required Vector2 b,
- required double radius,
Implementation
(bool result, SegmentQueryInfo info) segmentQuery({required Vector2 a, required Vector2 b, required double radius}) {
var info = SegmentQueryInfo();
return (bindings.cpShapeSegmentQuery(_shape, a.toCpVect().ref, b.toCpVect().ref, radius, info._toPointer) == 0 ? false : true, info);
}