feat: Shape Index Accessor
This commit is contained in:
		@@ -7,6 +7,8 @@ namespace Syntriax.Engine.Physics2D.Primitives;
 | 
			
		||||
 | 
			
		||||
public record Shape(IList<Vector2D> Vertices)
 | 
			
		||||
{
 | 
			
		||||
    public Vector2D this[int index] => Vertices[index];
 | 
			
		||||
 | 
			
		||||
    public static Triangle GetSuperTriangle(Shape shape)
 | 
			
		||||
    {
 | 
			
		||||
        float minX = float.MaxValue, minY = float.MaxValue;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user