Package georegression.fitting.sphere
Class CodecSphere3D_F64
java.lang.Object
georegression.fitting.sphere.CodecSphere3D_F64
- All Implemented Interfaces:
ModelCodec<Sphere3D_F64>
Encodes and decodes
Sphere3D_F64
into double[].
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_F64 sphere) void
encode
(Sphere3D_F64 sphere, double[] param) int
-
Constructor Details
-
CodecSphere3D_F64
public CodecSphere3D_F64()
-
-
Method Details
-
decode
- Specified by:
decode
in interfaceModelCodec<Sphere3D_F64>
-
encode
- Specified by:
encode
in interfaceModelCodec<Sphere3D_F64>
-
getParamLength
public int getParamLength()- Specified by:
getParamLength
in interfaceModelCodec<Sphere3D_F64>
-