fix: Circle Transformation Miscalculation
This commit is contained in:
parent
90370a2b43
commit
d7f0b76485
|
@ -69,7 +69,7 @@ public readonly struct Circle(Vector2D center, float radius)
|
|||
/// Transforms the <see cref="Circle"/> by the specified <see cref="ITransform"/>.
|
||||
/// </summary>
|
||||
public static Circle TransformCircle(ITransform transform, Circle circle)
|
||||
=> new(transform.TransformVector2D(circle.Center), circle.Radius * transform.Scale.Magnitude);
|
||||
=> new(transform.TransformVector2D(circle.Center), circle.Radius * (transform.Scale.Magnitude / Vector2D.One.Magnitude));
|
||||
|
||||
/// <summary>
|
||||
/// Checks if two <see cref="Circle"/>s are approximately equal.
|
||||
|
|
Loading…
Reference in New Issue