7 lines
180 B
C#
7 lines
180 B
C#
|
namespace Syntriax.Engine.Physics2D.Primitives;
|
||
|
|
||
|
public record LineEquation(float Slope, float OffsetY)
|
||
|
{
|
||
|
public float Resolve(float x) => Slope * x + OffsetY; // y = mx + b
|
||
|
}
|