Engine-Pong/Game/Physics2D/Primitives/LineEquation.cs

7 lines
180 B
C#
Raw Normal View History

2023-12-07 10:55:49 +03:00
namespace Syntriax.Engine.Physics2D.Primitives;
public record LineEquation(float Slope, float OffsetY)
{
public float Resolve(float x) => Slope * x + OffsetY; // y = mx + b
}