segmentQuery method

(bool, SegmentQueryInfo) segmentQuery({
  1. required Vector2 a,
  2. required Vector2 b,
  3. 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);
}