예제 #1
0
        public void ToString_IsString()
        {
            var vec = new float3(1, 2, 3);

            var actual = vec.ToString();

            Assert.Equal("(1, 2, 3)", actual);
        }
예제 #2
0
        internal string ConvertToString(IFormatProvider?provider)
        {
            if (provider == null)
            {
                provider = CultureInfo.CurrentCulture;
            }

            return(String.Format(provider, "{0}\n{1}\n{2}", Row0.ToString(provider), Row1.ToString(provider), Row2.ToString(provider)));
        }