Show / Hide Table of Contents

Class MonoPointExtensions

Extension methods for Microsoft.Xna.Framework.Point that enable operations involving Point.

Inheritance
object
MonoPointExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Microsoft.Xna.Framework
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public static class MonoPointExtensions

Methods

Add(Point, Direction)

Adds a Direction to a Microsoft.Xna.Framework.Point.

Declaration
public static Point Add(this Point self, Direction dir)
Parameters
Type Name Description
Point self
Direction dir
Returns
Type Description
Point

Add(Point, Point)

Adds a Point to a Microsoft.Xna.Framework.Point.

Declaration
public static Point Add(this Point self, Point other)
Parameters
Type Name Description
Point self
Point other
Returns
Type Description
Point

Add(Point, int)

Adds an integer to both the X and Y values of a Microsoft.Xna.Framework.Point.

Declaration
public static Point Add(this Point self, int i)
Parameters
Type Name Description
Point self
int i
Returns
Type Description
Point

Divide(Point, Point)

Divides a Microsoft.Xna.Framework.Point by a Point, and rounds the resulting X and Y values to the nearest integer.

Declaration
public static Point Divide(this Point self, Point other)
Parameters
Type Name Description
Point self
Point other
Returns
Type Description
Point

Divide(Point, double)

Divides the X and Y values of a Microsoft.Xna.Framework.Point by a double, then rounds the values to the nearest integer.

Declaration
public static Point Divide(this Point self, double d)
Parameters
Type Name Description
Point self
double d
Returns
Type Description
Point

Matches(Point, Point)

Compares a Microsoft.Xna.Framework.Point to a Point.

Declaration
public static bool Matches(this Point self, Point other)
Parameters
Type Name Description
Point self
Point other
Returns
Type Description
bool

Multiply(Point, Point)

Multiplies a Microsoft.Xna.Framework.Point by a Point.

Declaration
public static Point Multiply(this Point self, Point other)
Parameters
Type Name Description
Point self
Point other
Returns
Type Description
Point

Multiply(Point, double)

Multiplies the X and Y values of a Microsoft.Xna.Framework.Point by a double, then rounds the values to the nearest integer.

Declaration
public static Point Multiply(this Point self, double d)
Parameters
Type Name Description
Point self
double d
Returns
Type Description
Point

Multiply(Point, int)

Multiplies the X and Y values of a Microsoft.Xna.Framework.Point by an integer.

Declaration
public static Point Multiply(this Point self, int i)
Parameters
Type Name Description
Point self
int i
Returns
Type Description
Point

Subtract(Point, Direction)

Subtracts a Direction from a Microsoft.Xna.Framework.Point.

Declaration
public static Point Subtract(this Point self, Direction dir)
Parameters
Type Name Description
Point self
Direction dir
Returns
Type Description
Point

Subtract(Point, Point)

Subtracts a Point from a Microsoft.Xna.Framework.Point.

Declaration
public static Point Subtract(this Point self, Point other)
Parameters
Type Name Description
Point self
Point other
Returns
Type Description
Point

Subtract(Point, int)

Subtracts an integer from both the X and Y values of a Microsoft.Xna.Framework.Point.

Declaration
public static Point Subtract(this Point self, int i)
Parameters
Type Name Description
Point self
int i
Returns
Type Description
Point

ToPoint(Point)

Converts from Microsoft.Xna.Framework.Point to Point.

Declaration
public static Point ToPoint(this Point self)
Parameters
Type Name Description
Point self
Returns
Type Description
Point
In this article

Back to top

Back to top Generated by DocFX