public ShapeState DrawColorTriangle(
S.Vector2 a,
S.Vector2 b,
S.Vector2 c,
ColorShapeOptions? shapeOptions = null)
{
...
var areaMouseState = _mouseService.GetRectangleMouseState(topLeft, bottomRight);
shapeOptions = shapeOptions.Value.SetHovered(areaMouseState.IsIn);
...
return new(areaMouseState.IsIn, areaMouseState.LeftPressed);
}
AreaMouseState GetTriangleMouseState(Vector2 a, Vector2 b, Vector2 c)