I am creating and using Line2D in Java . I am wondering what Java data type I would use here? Instead of [any points on the line]? Or should I be doing some other logic?
if (object.yPosition >= [any points on the line] )
{
object.yPosition = line.Y_Position; OR object.xPosition = line.x_Position; //set object position = incoming point of interception
object.Speed = - object.Speed+1; //then reverse incoming object speed
}