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