Skip to content

Commit

Permalink
fix: bbox
Browse files Browse the repository at this point in the history
  • Loading branch information
tk-yoshimura committed Dec 5, 2024
1 parent 69f0ef5 commit 13158f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion DoubleDoubleGeometry/Geometry3D/Ellipse3D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public override int GetHashCode() {
}

// A x^2 + B y^2 + C z^2 + D x y + E x z + F y z + G = 0
public class EllipseImplicitParameter {
private class EllipseImplicitParameter {
public readonly ddouble A, B, C, D, E, F, G;

public EllipseImplicitParameter(Vector2D axis, Quaternion rotation) {
Expand Down
2 changes: 0 additions & 2 deletions DoubleDoubleGeometryTest/Geometry3D/Ellipse3DTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public class Ellipse3DTests {
public void Ellipse3DTest() {
Ellipse3D ellipse = new((1, 2, 7), (4, 3), Vector3D.Rot((0, 0, 1), (2, 3, 4)));

Ellipse3D.EllipseImplicitParameter param = new Ellipse3D.EllipseImplicitParameter(ellipse.Axis, ellipse.Rotation);

Vector3DAssert.AreEqual((1, 2, 7), ellipse.Center, 1e-30);
Vector3DAssert.AreEqual(new Vector3D(2, 3, 4).Normal, ellipse.Normal, 1e-30);
Assert.AreEqual(4d, ellipse.MajorAxis);
Expand Down

0 comments on commit 13158f8

Please sign in to comment.