ExtensionsColorNumericsMonoGame Class
Definition
Section titled “Definition”Extensions to convert Vector4 to/from SadRogue.Primitives.Color.
public static class ExtensionsColorNumericsMonoGameInheritance object
Methods
Section titled “Methods”ToMonoGameColor(Vector4)
Section titled “ToMonoGameColor(Vector4)”Converts a Vector4 to a Microsoft.Xna.Framework.Color.
public static Color ToMonoGameColor(this Vector4 value)Parameters
Section titled “Parameters”value Vector4
The vector color to convert.
Returns
Section titled “Returns”Microsoft.Xna.Framework.Color
The Microsoft.Xna.Framework.Color representing the color.
ToMonoGameColor(Vector3)
Section titled “ToMonoGameColor(Vector3)”Converts a Vector3 to a Microsoft.Xna.Framework.Color.
public static Color ToMonoGameColor(this Vector3 value)Parameters
Section titled “Parameters”value Vector3
The vector color to convert.
Returns
Section titled “Returns”Microsoft.Xna.Framework.Color
The Microsoft.Xna.Framework.Color representing the color.
ToUV(Point, Point)
Section titled “ToUV(Point, Point)”Gets a Vector2 representing the UV coordinates of a Microsoft.Xna.Framework.Point within a Microsoft.Xna.Framework.Point size.
public static Vector2 ToUV(this Point point, Point size)Parameters
Section titled “Parameters”point Microsoft.Xna.Framework.Point
The coordinates within the size.
size Microsoft.Xna.Framework.Point
The size.
Returns
Section titled “Returns”Vector2
The UV coordinates.