Documentation of 'georegression.fitting.cylinder.CodecCylinder3D_F64' Java class
CodecCylinder3D_F64
georegression.fitting.cylinder

Class CodecCylinder3D_F64

  • All Implemented Interfaces:
    ModelCodec<Cylinder3D_F64>


    public class CodecCylinder3D_F64
    extends java.lang.Object
    implements ModelCodec<Cylinder3D_F64>
    Encodes and decodes Cylinder3D_F64 into double[].
     cylinder.line.p.x = input[0];
     cylinder.line.p.y = input[1];
     cylinder.line.p.z = input[2];
     cylinder.line.slope.x = input[3];
     cylinder.line.slope.y = input[4];
     cylinder.line.slope.z = input[5];
     cylinder.radius = input[6];
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void decode(double[] input, Cylinder3D_F64 cylinder)
      Converts the parameter array into a model.
      void encode(Cylinder3D_F64 cylinder, 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

      • CodecCylinder3D_F64

        public CodecCylinder3D_F64()
    • Method Detail

      • decode

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

        public void encode(Cylinder3D_F64 cylinder,
                           double[] param)
        Description copied from interface: ModelCodec
        Converts the provided model into the array format.
        Specified by:
        encode in interface ModelCodec<Cylinder3D_F64>
        Parameters:
        cylinder - 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.