Apache Commons logo Apache Commons Geometry

CPD Results

The following document contains the results of PMD's CPD 6.36.0.

Duplications

File Line
org/apache/commons/geometry/euclidean/threed/shape/Sphere.java 290
org/apache/commons/geometry/euclidean/threed/shape/Sphere.java 457
tree.insert(plusZPlane.span(), RegionCutRule.INHERIT);

            // create the vertices for the octahedron
            final double cx = center.getX();
            final double cy = center.getY();
            final double cz = center.getZ();

            final Vector3D maxX = Vector3D.of(cx + radius, cy, cz);
            final Vector3D minX = Vector3D.of(cx - radius, cy, cz);

            final Vector3D maxY = Vector3D.of(cx, cy + radius, cz);
            final Vector3D minY = Vector3D.of(cx, cy - radius, cz);

            final Vector3D maxZ = Vector3D.of(cx, cy, cz + radius);
            final Vector3D minZ = Vector3D.of(cx, cy, cz - radius);