Class SVGHyperSphere


  • public final class SVGHyperSphere
    extends java.lang.Object
    Utility class to draw hypercubes, wireframe and filled.
    Since:
    0.4.0
    Author:
    Erich Schubert
    • Field Detail

      • EUCLIDEAN_KAPPA

        public static final double EUCLIDEAN_KAPPA
        Factor used for approximating circles with cubic beziers. kappa = 4 * (Math.sqrt(2)-1)/3
        See Also:
        Constant Field Values
    • Constructor Detail

      • SVGHyperSphere

        private SVGHyperSphere()
        Private constructor. Static methods only.
    • Method Detail

      • drawManhattan

        public static org.w3c.dom.Element drawManhattan​(SVGPlot svgp,
                                                        Projection2D proj,
                                                        NumberVector mid,
                                                        double radius)
        Wireframe "manhattan" hypersphere
        Parameters:
        svgp - SVG Plot
        proj - Visualization projection
        mid - mean vector
        radius - radius
        Returns:
        path element
      • drawEuclidean

        public static org.w3c.dom.Element drawEuclidean​(SVGPlot svgp,
                                                        Projection2D proj,
                                                        NumberVector mid,
                                                        double radius)
        Wireframe "euclidean" hypersphere
        Parameters:
        svgp - SVG Plot
        proj - Visualization projection
        mid - mean vector
        radius - radius
        Returns:
        path element
      • drawLp

        public static org.w3c.dom.Element drawLp​(SVGPlot svgp,
                                                 Projection2D proj,
                                                 NumberVector mid,
                                                 double radius,
                                                 double p)
        Wireframe "Lp" hypersphere
        Parameters:
        svgp - SVG Plot
        proj - Visualization projection
        mid - mean vector
        radius - radius
        p - L_p value
        Returns:
        path element
      • drawCross

        public static org.w3c.dom.Element drawCross​(SVGPlot svgp,
                                                    Projection2D proj,
                                                    NumberVector mid,
                                                    double radius)
        Wireframe "cross" hypersphere
        Parameters:
        svgp - SVG Plot
        proj - Visualization projection
        mid - mean vector
        radius - radius
        Returns:
        path element