georegression.fitting.cylinder
Class CodecCylinder3D_F32
- java.lang.Object
-
- georegression.fitting.cylinder.CodecCylinder3D_F32
-
- All Implemented Interfaces:
- ModelCodec<Cylinder3D_F32>
public class CodecCylinder3D_F32 extends java.lang.Object implements ModelCodec<Cylinder3D_F32>
Encodes and decodesCylinder3D_F32into float[].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];
-
-
Constructor Summary
Constructors Constructor and Description CodecCylinder3D_F32()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddecode(double[] input, Cylinder3D_F32 cylinder)Converts the parameter array into a model.voidencode(Cylinder3D_F32 cylinder, double[] param)Converts the provided model into the array format.intgetParamLength()Number of elements in array encoded parameters.
-
-
-
Method Detail
-
decode
public void decode(double[] input, Cylinder3D_F32 cylinder)Description copied from interface:ModelCodecConverts the parameter array into a model.- Specified by:
decodein interfaceModelCodec<Cylinder3D_F32>- Parameters:
input- input model parameters.cylinder- Option (can be null) model.
-
encode
public void encode(Cylinder3D_F32 cylinder, double[] param)
Description copied from interface:ModelCodecConverts the provided model into the array format.- Specified by:
encodein interfaceModelCodec<Cylinder3D_F32>- Parameters:
cylinder- Input model.param- Output parameterized model. Can be null.
-
getParamLength
public int getParamLength()
Description copied from interface:ModelCodecNumber of elements in array encoded parameters.- Specified by:
getParamLengthin interfaceModelCodec<Cylinder3D_F32>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG