Segment Shape for 2D Collision Detection. Segment Shape for 2D Collision Detection, consists of two points, 'a' and 'b'. Return the first point's position. Return the second point's position. Set the first point's position. Set the second point's position.