fromValue static method
Implementation
static SolvePnPMethod fromValue(int value) => switch (value) {
0 => SOLVEPNP_ITERATIVE,
1 => SOLVEPNP_EPNP,
2 => SOLVEPNP_P3P,
3 => SOLVEPNP_DLS,
4 => SOLVEPNP_UPNP,
5 => SOLVEPNP_AP3P,
6 => SOLVEPNP_IPPE,
7 => SOLVEPNP_IPPE_SQUARE,
8 => SOLVEPNP_SQPNP,
9 => SOLVEPNP_MAX_COUNT,
_ => throw ArgumentError("Unknown value for SolvePnPMethod: $value"),
};