MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / ParseCone

Function ParseCone

Source/URLab/Private/Bridge/RpcDispatcher.cpp:2171–2184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2169 return TEXT("euler");
2170}
2171bool ParseCone(const FString& S, EMjCone& Out)
2172{
2173 if (S.Equals(TEXT("pyramidal"), ESearchCase::IgnoreCase))
2174 {
2175 Out = EMjCone::Pyramidal;
2176 return true;
2177 }
2178 if (S.Equals(TEXT("elliptic"), ESearchCase::IgnoreCase))
2179 {
2180 Out = EMjCone::Elliptic;
2181 return true;
2182 }
2183 return false;
2184}
2185FString ConeToString(EMjCone C)
2186{
2187 return C == EMjCone::Elliptic ? TEXT("elliptic") : TEXT("pyramidal");

Callers 1

HandleSetSimOptionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected