public string ConvertToString(object value) { Color color = (Color)value; if (color.A != byte.MaxValue) { return(HumanReadableConverter.ValuesListToString(',', new int[4] { color.R, color.G, color.B, color.A })); } return(HumanReadableConverter.ValuesListToString(',', new int[3] { color.R, color.G, color.B })); }
public string ConvertToString(object value) { BoundingSphere boundingSphere = (BoundingSphere)value; return(HumanReadableConverter.ValuesListToString <float>(',', boundingSphere.Center.X, boundingSphere.Center.Y, boundingSphere.Center.Z, boundingSphere.Radius)); }
public string ConvertToString(object value) { Vector2 vector = (Vector2)value; return(HumanReadableConverter.ValuesListToString <float>(',', vector.X, vector.Y)); }
public string ConvertToString(object value) { Plane plane = (Plane)value; return(HumanReadableConverter.ValuesListToString <float>(',', plane.Normal.X, plane.Normal.Y, plane.Normal.Z, plane.D)); }
public string ConvertToString(object value) { Point3 point = (Point3)value; return(HumanReadableConverter.ValuesListToString <int>(',', point.X, point.Y, point.Z)); }
public string ConvertToString(object value) { Box box = (Box)value; return(HumanReadableConverter.ValuesListToString <int>(',', box.Left, box.Top, box.Near, box.Width, box.Height, box.Depth)); }
public string ConvertToString(object value) { Matrix matrix = (Matrix)value; return(HumanReadableConverter.ValuesListToString <float>(',', matrix.M11, matrix.M12, matrix.M13, matrix.M14, matrix.M21, matrix.M22, matrix.M23, matrix.M24, matrix.M31, matrix.M32, matrix.M33, matrix.M34, matrix.M41, matrix.M42, matrix.M43, matrix.M44)); }
public string ConvertToString(object value) { Rectangle rectangle = (Rectangle)value; return(HumanReadableConverter.ValuesListToString <int>(',', rectangle.Left, rectangle.Top, rectangle.Width, rectangle.Height)); }
public string ConvertToString(object value) { BoundingBox boundingBox = (BoundingBox)value; return(HumanReadableConverter.ValuesListToString <float>(',', boundingBox.Min.X, boundingBox.Min.Y, boundingBox.Min.Z, boundingBox.Max.X, boundingBox.Max.Y, boundingBox.Max.Z)); }
public string ConvertToString(object value) { Quaternion quaternion = (Quaternion)value; return(HumanReadableConverter.ValuesListToString <float>(',', quaternion.X, quaternion.Y, quaternion.Z, quaternion.W)); }
public string ConvertToString(object value) { BoundingRectangle boundingRectangle = (BoundingRectangle)value; return(HumanReadableConverter.ValuesListToString <float>(',', boundingRectangle.Min.X, boundingRectangle.Min.Y, boundingRectangle.Max.X, boundingRectangle.Max.Y)); }