Show / Hide Table of Contents

Class SadRoguePointExtensions

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

Inheritance
object
SadRoguePointExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadRogue.Primitives
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public static class SadRoguePointExtensions

Methods

Add(Point, Point)

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

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

Divide(Point, Point)

Divides a Point by a Microsoft.Xna.Framework.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

Matches(Point, Point)

Compares a Point to a Microsoft.Xna.Framework.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 Point by a Microsoft.Xna.Framework.Point.

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

Subtract(Point, Point)

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

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

ToMonoPoint(Point)

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

Declaration
public static Point ToMonoPoint(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