Documentation of 'georegression.fitting.sphere.CodecSphere3D_F32' Java class
CodecSphere3D_F32
georegression.fitting.sphere

Class CodecSphere3D_F32

  • All Implemented Interfaces:
    ModelCodec<Sphere3D_F32>


    public class CodecSphere3D_F32
    extends java.lang.Object
    implements ModelCodec<Sphere3D_F32>
    Encodes and decodes Sphere3D_F32 into float[].
     sphere.center.x = input[0];
     sphere.center.y = input[1];
     sphere.center.z = input[2];
     sphere.radius = input[3];
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void decode(double[] input, Sphere3D_F32 sphere)
      Converts the parameter array into a model.
      void encode(Sphere3D_F32 sphere, double[] param)
      Converts the provided model into the array format.
      int getParamLength()
      Number of elements in array encoded parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodecSphere3D_F32

        public CodecSphere3D_F32()
    • Method Detail

      • decode

        public void decode(double[] input,
                           Sphere3D_F32 sphere)
        Description copied from interface: ModelCodec
        Converts the parameter array into a model.
        Specified by:
        decode in interface ModelCodec<Sphere3D_F32>
        Parameters:
        input - input model parameters.
        sphere - Option (can be null) model.
      • encode

        public void encode(Sphere3D_F32 sphere,
                           double[] param)
        Description copied from interface: ModelCodec
        Converts the provided model into the array format.
        Specified by:
        encode in interface ModelCodec<Sphere3D_F32>
        Parameters:
        sphere - Input model.
        param - Output parameterized model. Can be null.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.