lullaby/modules/tinygltf/tinygltf_util.cc
/// Returns the Motive InterpolationType for a given |type|, which must match
/// one of the values of tinygltf::AnimationSampler::interpolation, or NullOpt
/// if there is no match.
Returns the Motive InterpolationType for a given |type|, which must match
one of the values of tinygltf::AnimationSampler::interpolation, or NullOpt
if there is no match.
Returns the Motive InterpolationType for a given |type| which must match one of the values of tinygltf :: AnimationSampler :: interpolation or NullOpt if there is no match .
Optional<motive::InterpolationType> InterpolationTypeForString(
    const std::string& type) {
  if (type == "LINEAR") {
    return motive::kLinear;
  } else if (type == "STEP") {
    return motive::kStep;
  } else if (type == "CUBICSPLINE") {
    return motive::kCubicSpline;
  }
  return NullOpt;
}
Optional < motive :: InterpolationType > InterpolationTypeForString ( const std :: string & type ) { if ( type == " " ) { return motive :: kLinear ; } else if ( type == " " ) { return motive :: kStep ; } else if ( type == " " ) { return motive :: kCubicSpline ; } return NullOpt ; }
Returns the Motive InterpolationType for a given |type|, which must match
one of the values of tinygltf::AnimationSampler::interpolation, or NullOpt
if there is no match.
Returns the Motive InterpolationType for a given |type| which must match one of the values of tinygltf :: AnimationSampler :: interpolation or NullOpt if there is no match .