Class SadRoguePointExtensions
Extension methods for Point that enable operations involving
Microsoft.Xna.Framework.Point.
Inheritance
SadRoguePointExtensions
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
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
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
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
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
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