Line2D
@Serializable
Represents a two-dimensional line in space, defined by an origin point and a direction vector.
The Line2D
class facilitates mathematical operations such as addition, subtraction, scaling, and division. It also includes methods for constructing a line based on specific parameters and operations to compute derived properties or positions along the line.