Beispiel #1
0
        public void Vector2FromString_RandomVector()
        {
            var testInput = "(1.234567,-7.890123)";
            var expected  = new Vector2(1.234567f, -7.890123f);
            var result    = S2VXUtils.StringToVector2(testInput);

            Assert.AreEqual(expected, result);
        }
Beispiel #2
0
        public static CameraMoveCommand FromString(string[] split)
        {
            var command = new CameraMoveCommand()
            {
                StartValue = S2VXUtils.StringToVector2(split[2]),
                EndValue   = S2VXUtils.StringToVector2(split[4]),
            };

            return(command);
        }