MonoPointExtensions Class
Definition
Section titled “Definition”Extension methods for Microsoft.Xna.Framework.Point that enable operations involving SadRogue.Primitives.Point.
public static class MonoPointExtensionsInheritance object
Methods
Section titled “Methods”ToPoint(Point)
Section titled “ToPoint(Point)”Converts from Microsoft.Xna.Framework.Point to SadRogue.Primitives.Point.
public static Point ToPoint(this Point self)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
Returns
Section titled “Returns”SadRogue.Primitives.Point
Add(Point, Point)
Section titled “Add(Point, Point)”Adds a SadRogue.Primitives.Point to a Microsoft.Xna.Framework.Point.
public static Point Add(this Point self, Point other)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
other SadRogue.Primitives.Point
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Add(Point, int)
Section titled “Add(Point, int)”Adds an integer to both the X and Y values of a Microsoft.Xna.Framework.Point.
public static Point Add(this Point self, int i)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
i int
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Add(Point, Direction)
Section titled “Add(Point, Direction)”Adds a SadRogue.Primitives.Direction to a Microsoft.Xna.Framework.Point.
public static Point Add(this Point self, Direction dir)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
dir SadRogue.Primitives.Direction
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Subtract(Point, Point)
Section titled “Subtract(Point, Point)”Subtracts a SadRogue.Primitives.Point from a Microsoft.Xna.Framework.Point.
public static Point Subtract(this Point self, Point other)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
other SadRogue.Primitives.Point
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Subtract(Point, int)
Section titled “Subtract(Point, int)”Subtracts an integer from both the X and Y values of a Microsoft.Xna.Framework.Point.
public static Point Subtract(this Point self, int i)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
i int
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Subtract(Point, Direction)
Section titled “Subtract(Point, Direction)”Subtracts a SadRogue.Primitives.Direction from a Microsoft.Xna.Framework.Point.
public static Point Subtract(this Point self, Direction dir)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
dir SadRogue.Primitives.Direction
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Multiply(Point, Point)
Section titled “Multiply(Point, Point)”Multiplies a Microsoft.Xna.Framework.Point by a SadRogue.Primitives.Point.
public static Point Multiply(this Point self, Point other)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
other SadRogue.Primitives.Point
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Multiply(Point, int)
Section titled “Multiply(Point, int)”Multiplies the X and Y values of a Microsoft.Xna.Framework.Point by an integer.
public static Point Multiply(this Point self, int i)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
i int
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Multiply(Point, double)
Section titled “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.
public static Point Multiply(this Point self, double d)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
d double
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Divide(Point, Point)
Section titled “Divide(Point, Point)”Divides a Microsoft.Xna.Framework.Point by a SadRogue.Primitives.Point, and rounds the resulting X and Y values to the nearest integer.
public static Point Divide(this Point self, Point other)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
other SadRogue.Primitives.Point
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Divide(Point, double)
Section titled “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.
public static Point Divide(this Point self, double d)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
d double
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Matches(Point, Point)
Section titled “Matches(Point, Point)”Compares a Microsoft.Xna.Framework.Point to a SadRogue.Primitives.Point.
public static bool Matches(this Point self, Point other)Parameters
Section titled “Parameters”self Microsoft.Xna.Framework.Point
other SadRogue.Primitives.Point