// ReSharper disable InconsistentNaming namespace Brutal.Numerics; /// Defines a generic plane type. /// The type that implements the interface. /// The normal vector type /// The component type. public interface IPlane : IEquatable, IFormattable where TSelf : IPlane { public TVectorType Normal { get; } public T D { get; } /// Construct a plane of this type from a span (normal xyz, then d). static abstract TSelf Create(ReadOnlySpan span); } internal class PlaneDebugView(IPlane p) where TSelf : IPlane { /// public TVectorType Normal => p.Normal; /// public T D => p.D; public override string? ToString() { return p.ToString(); } }