Package net.regsirius06.engine.core.graphics.rays


package net.regsirius06.engine.core.graphics.rays
Provides classes related to the representation and manipulation of 2D lines in the Cartesian plane.

This package includes the Line2D class, which provides a variety of methods for working with lines in 2D space. The Line2D class supports operations such as:

  • Defining a line using slope and y-intercept, two points, or an angle and a point
  • Calculating the y-coordinate for a given x-coordinate (and vice versa)
  • Determining the angle of the line relative to the x-axis
  • Rotating the line around a specified point
  • Calculating the perpendicular (normal) line to the given line

The classes in this package are primarily used for geometric calculations and raycasting algorithms, particularly in the context of rendering and simulating environments such as labyrinths.