| 34 | } |
| 35 | |
| 36 | FVector2D 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 | |
| 47 | void MjXmlUtils::ParseFloatArray(const FString& S, TArray<float>& OutArray) |
| 48 | { |
nothing calls this directly
no outgoing calls
no test coverage detected