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

Method ParseVector2D

Source/URLab/Private/MuJoCo/Utils/MjXmlUtils.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36FVector2D MjXmlUtils::ParseVector2D(const FString& S)
37{
38 TArray<FString> Parts;
39 S.ParseIntoArray(Parts, TEXT(" "), true);
40 if (Parts.Num() >= 2)
41 {
42 return FVector2D(FCString::Atod(*Parts[0]), FCString::Atod(*Parts[1]));
43 }
44 return FVector2D::ZeroVector;
45}
46
47void MjXmlUtils::ParseFloatArray(const FString& S, TArray<float>& OutArray)
48{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected