Show / Hide Table of Contents

Class ExtensionsColorNumericsMonoGame

Extensions to convert Vector4 to/from Color.

Inheritance
object
ExtensionsColorNumericsMonoGame
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: System.Numerics
Assembly: SadConsole.Debug.MonoGame.dll
Syntax
public static class ExtensionsColorNumericsMonoGame

Methods

ToMonoGameColor(Vector3)

Converts a Vector3 to a Microsoft.Xna.Framework.Color.

Declaration
public static Color ToMonoGameColor(this Vector3 value)
Parameters
Type Name Description
Vector3 value

The vector color to convert.

Returns
Type Description
Color

The Microsoft.Xna.Framework.Color representing the color.

ToMonoGameColor(Vector4)

Converts a Vector4 to a Microsoft.Xna.Framework.Color.

Declaration
public static Color ToMonoGameColor(this Vector4 value)
Parameters
Type Name Description
Vector4 value

The vector color to convert.

Returns
Type Description
Color

The Microsoft.Xna.Framework.Color representing the color.

ToUV(Point, Point)

Gets a Vector2 representing the UV coordinates of a Microsoft.Xna.Framework.Point within a Microsoft.Xna.Framework.Point size.

Declaration
public static Vector2 ToUV(this Point point, Point size)
Parameters
Type Name Description
Point point

The coordinates within the size.

Point size

The size.

Returns
Type Description
Vector2

The UV coordinates.

In this article

Back to top

Back to top Generated by DocFX