示例#1
0
        public object?Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            switch (value)
            {
            case v4 vec4:
                return(!Math_.IsNaN(vec4) ? vec4 : "---");

            case v3 vec3:
                return(!Math_.IsNaN(vec3) ? vec3 : "---");

            case v2 vec2:
                return(!Math_.IsNaN(vec2) ? vec2 : "---");

            case double db:
                return(!Math_.IsNaN(db) ? db : "---");

            case float ft:
                return(!Math_.IsNaN(ft) ? ft : "---");
            }
            return(null);
        }