Class AbstractSimpleProjection

    • Constructor Detail

      • AbstractSimpleProjection

        public AbstractSimpleProjection​(Projector p,
                                        LinearScale[] scales)
        Constructor.
        Parameters:
        p - Projector
        scales - Scales to use
    • Method Detail

      • projectScaledToRender

        public double[] projectScaledToRender​(double[] v)
        Description copied from interface: FullProjection
        Project a vector from scaled space to rendering space.
        Parameters:
        v - vector in scaled space
        Returns:
        vector in rendering space
      • projectRenderToScaled

        public double[] projectRenderToScaled​(double[] v)
        Description copied from interface: FullProjection
        Project a vector from rendering space to scaled space.
        Parameters:
        v - vector in rendering space
        Returns:
        vector in scaled space
      • projectRelativeScaledToRender

        public double[] projectRelativeScaledToRender​(double[] v)
        Description copied from interface: FullProjection
        Project a relative vector from scaled space to rendering space.
        Parameters:
        v - relative vector in scaled space
        Returns:
        relative vector in rendering space
      • projectRelativeRenderToScaled

        public double[] projectRelativeRenderToScaled​(double[] v)
        Description copied from interface: FullProjection
        Project a relative vector from rendering space to scaled space.
        Parameters:
        v - relative vector in rendering space
        Returns:
        relative vector in scaled space
      • flipSecondEquals

        protected double[] flipSecondEquals​(double[] v)
        Flip the y axis.
        Parameters:
        v - double[]
        Returns:
        modified v
      • rearrange

        protected abstract double[] rearrange​(double[] v)
        Method to rearrange components.
        Parameters:
        v - double[] to rearrange
        Returns:
        rearranged copy
      • dearrange

        protected abstract double[] dearrange​(double[] v)
        Undo the rearrangement of components.
        Parameters:
        v - double[] to undo the rearrangement
        Returns:
        rearranged-undone copy