Package georegression.fitting.sphere
Class CodecSphere3D_F32
java.lang.Object
georegression.fitting.sphere.CodecSphere3D_F32
- All Implemented Interfaces:
ModelCodec<Sphere3D_F32>
@Generated("georegression.fitting.sphere.CodecSphere3D_F64")
public class CodecSphere3D_F32
extends 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];
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(double[] input, Sphere3D_F32 sphere) void
encode
(Sphere3D_F32 sphere, double[] param) int
-
Constructor Details
-
CodecSphere3D_F32
public CodecSphere3D_F32()
-
-
Method Details
-
decode
- Specified by:
decode
in interfaceModelCodec<Sphere3D_F32>
-
encode
- Specified by:
encode
in interfaceModelCodec<Sphere3D_F32>
-
getParamLength
public int getParamLength()- Specified by:
getParamLength
in interfaceModelCodec<Sphere3D_F32>
-