Convert a string to a Vector3 with a given separator.
Namespace: Demo3D.CommonAssembly: Demo3D.Common (in Demo3D.Common.dll) Version: 19.01.00
Syntaxpublic static Vector3 ParseVector3(
string s,
char separator = ''
)
Parameters
- s String
- The string representing the vector with x, y and z components.
- separator Char (Optional)
- The character to use to separate the x from the y, and the y from the z.
Return Value
Vector3A Vector3 converted from the string.
RemarksThe numbers in the string must be CultureInvariant (use . instead of ,).
See Also