Click or drag to resize

UtilParseVector3 Method

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
Syntax
C#
public 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: Vector3
A Vector3 converted from the string.
Remarks
The numbers in the string must be CultureInvariant (use . instead of ,).
See Also