Class AbstractFullProjection

    • Constructor Detail

      • AbstractFullProjection

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

      • projectDataToScaledSpace

        public double[] projectDataToScaledSpace​(NumberVector data)
        Project a data vector from data space to scaled space.
        Specified by:
        projectDataToScaledSpace in interface FullProjection
        Parameters:
        data - vector in data space
        Returns:
        vector in scaled space
      • projectDataToScaledSpace

        public double[] projectDataToScaledSpace​(double[] data)
        Project a data vector from data space to scaled space.
        Specified by:
        projectDataToScaledSpace in interface FullProjection
        Parameters:
        data - vector in data space
        Returns:
        vector in scaled space
      • projectRelativeDataToScaledSpace

        public double[] projectRelativeDataToScaledSpace​(NumberVector data)
        Project a relative data vector from data space to scaled space.
        Specified by:
        projectRelativeDataToScaledSpace in interface FullProjection
        Parameters:
        data - relative vector in data space
        Returns:
        relative vector in scaled space
      • projectRelativeDataToScaledSpace

        public double[] projectRelativeDataToScaledSpace​(double[] data)
        Project a relative data vector from data space to scaled space.
        Specified by:
        projectRelativeDataToScaledSpace in interface FullProjection
        Parameters:
        data - relative vector in data space
        Returns:
        relative vector in scaled space
      • projectDataToRenderSpace

        public double[] projectDataToRenderSpace​(NumberVector data)
        Project a data vector from data space to rendering space.
        Specified by:
        projectDataToRenderSpace in interface FullProjection
        Parameters:
        data - vector in data space
        Returns:
        vector in rendering space
      • projectDataToRenderSpace

        public double[] projectDataToRenderSpace​(double[] data)
        Project a data vector from data space to rendering space.
        Specified by:
        projectDataToRenderSpace in interface FullProjection
        Parameters:
        data - vector in data space
        Returns:
        vector in rendering space
      • projectRelativeDataToRenderSpace

        public double[] projectRelativeDataToRenderSpace​(NumberVector data)
        Project a relative data vector from data space to rendering space.
        Specified by:
        projectRelativeDataToRenderSpace in interface FullProjection
        Parameters:
        data - relative vector in data space
        Returns:
        relative vector in rendering space
      • projectRelativeDataToRenderSpace

        public double[] projectRelativeDataToRenderSpace​(double[] data)
        Project a relative data vector from data space to rendering space.
        Specified by:
        projectRelativeDataToRenderSpace in interface FullProjection
        Parameters:
        data - relative vector in data space
        Returns:
        relative vector in rendering space
      • projectScaledToDataSpace

        public <NV extends NumberVector> NV projectScaledToDataSpace​(double[] v,
                                                                     NumberVector.Factory<NV> factory)
        Project a vector from scaled space to data space.
        Specified by:
        projectScaledToDataSpace in interface FullProjection
        Type Parameters:
        NV - Vector type
        Parameters:
        v - vector in scaled space
        factory - Object factory
        Returns:
        vector in data space
      • projectRenderToDataSpace

        public <NV extends NumberVector> NV projectRenderToDataSpace​(double[] v,
                                                                     NumberVector.Factory<NV> prototype)
        Project a vector from rendering space to data space.
        Specified by:
        projectRenderToDataSpace in interface FullProjection
        Type Parameters:
        NV - Vector type
        Parameters:
        v - vector in rendering space
        prototype - Object factory
        Returns:
        vector in data space
      • projectRelativeScaledToDataSpace

        public <NV extends NumberVector> NV projectRelativeScaledToDataSpace​(double[] v,
                                                                             NumberVector.Factory<NV> prototype)
        Project a relative vector from scaled space to data space.
        Specified by:
        projectRelativeScaledToDataSpace in interface FullProjection
        Type Parameters:
        NV - Vector type
        Parameters:
        v - relative vector in scaled space
        prototype - Object factory
        Returns:
        relative vector in data space
      • projectRelativeRenderToDataSpace

        public <NV extends NumberVector> NV projectRelativeRenderToDataSpace​(double[] v,
                                                                             NumberVector.Factory<NV> prototype)
        Project a relative vector from rendering space to data space.
        Specified by:
        projectRelativeRenderToDataSpace in interface FullProjection
        Type Parameters:
        NV - Vector type
        Parameters:
        v - relative vector in rendering space
        prototype - Object factory
        Returns:
        relative vector in data space