Class Simple1D

    • Field Detail

      • dnum

        final int dnum
        Our dimension, starting with 0
    • Constructor Detail

      • Simple1D

        public Simple1D​(Projector p,
                        LinearScale[] scales,
                        int dnum)
        Simple 1D projection using scaling only.
        Parameters:
        p - Projector
        scales - Scales to use
        dnum - Dimension (starting at 0)
    • Method Detail

      • fastProjectDataToRenderSpace

        public double fastProjectDataToRenderSpace​(double[] data)
        Description copied from interface: Projection1D
        Project a data vector from data space to rendering space.
        Specified by:
        fastProjectDataToRenderSpace in interface Projection1D
        Parameters:
        data - vector in data space
        Returns:
        vector in rendering space
      • fastProjectDataToRenderSpace

        public double fastProjectDataToRenderSpace​(NumberVector data)
        Description copied from interface: Projection1D
        Project a data vector from data space to rendering space.
        Specified by:
        fastProjectDataToRenderSpace in interface Projection1D
        Parameters:
        data - vector in data space
        Returns:
        vector in rendering space
      • fastProjectScaledToRender

        public double fastProjectScaledToRender​(double[] v)
        Description copied from interface: Projection1D
        Project a vector from scaled space to rendering space.
        Specified by:
        fastProjectScaledToRender in interface Projection1D
        Parameters:
        v - vector in scaled space
        Returns:
        vector in rendering space
      • fastProjectRelativeDataToRenderSpace

        public double fastProjectRelativeDataToRenderSpace​(double[] data)
        Description copied from interface: Projection1D
        Project a data vector from data space to rendering space.
        Specified by:
        fastProjectRelativeDataToRenderSpace in interface Projection1D
        Parameters:
        data - vector in data space
        Returns:
        vector in rendering space
      • fastProjectRelativeDataToRenderSpace

        public double fastProjectRelativeDataToRenderSpace​(NumberVector data)
        Description copied from interface: Projection1D
        Project a data vector from data space to rendering space.
        Specified by:
        fastProjectRelativeDataToRenderSpace in interface Projection1D
        Parameters:
        data - vector in data space
        Returns:
        vector in rendering space
      • fastProjectRelativeScaledToRender

        public double fastProjectRelativeScaledToRender​(double[] v)
        Description copied from interface: Projection1D
        Project a vector from scaled space to rendering space.
        Specified by:
        fastProjectRelativeScaledToRender in interface Projection1D
        Parameters:
        v - vector in scaled space
        Returns:
        vector in rendering space
      • dearrange

        protected double[] dearrange​(double[] v)
        Description copied from class: AbstractSimpleProjection
        Undo the rearrangement of components.
        Specified by:
        dearrange in class AbstractSimpleProjection
        Parameters:
        v - double[] to undo the rearrangement
        Returns:
        rearranged-undone copy