SadRoguePointExtensions Class
Definition
Section titled “Definition”Extension methods for SadRogue.Primitives.Point that enable operations involving Microsoft.Xna.Framework.Point.
public static class SadRoguePointExtensionsInheritance object
Methods
Section titled “Methods”ToMonoPoint(Point)
Section titled “ToMonoPoint(Point)”Converts from SadRogue.Primitives.Point to Microsoft.Xna.Framework.Point.
public static Point ToMonoPoint(this Point self)Parameters
Section titled “Parameters”self SadRogue.Primitives.Point
Returns
Section titled “Returns”Microsoft.Xna.Framework.Point
Add(Point, Point)
Section titled “Add(Point, Point)”Adds a Microsoft.Xna.Framework.Point to a SadRogue.Primitives.Point.
public static Point Add(this Point self, Point other)Parameters
Section titled “Parameters”self SadRogue.Primitives.Point
other Microsoft.Xna.Framework.Point
Returns
Section titled “Returns”SadRogue.Primitives.Point
Subtract(Point, Point)
Section titled “Subtract(Point, Point)”Subtracts a Microsoft.Xna.Framework.Point from a SadRogue.Primitives.Point.
public static Point Subtract(this Point self, Point other)Parameters
Section titled “Parameters”self SadRogue.Primitives.Point
other Microsoft.Xna.Framework.Point
Returns
Section titled “Returns”SadRogue.Primitives.Point
Multiply(Point, Point)
Section titled “Multiply(Point, Point)”Multiplies a SadRogue.Primitives.Point by a Microsoft.Xna.Framework.Point.
public static Point Multiply(this Point self, Point other)Parameters
Section titled “Parameters”self SadRogue.Primitives.Point
other Microsoft.Xna.Framework.Point
Returns
Section titled “Returns”SadRogue.Primitives.Point
Divide(Point, Point)
Section titled “Divide(Point, Point)”Divides a SadRogue.Primitives.Point by a Microsoft.Xna.Framework.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 SadRogue.Primitives.Point
other Microsoft.Xna.Framework.Point
Returns
Section titled “Returns”SadRogue.Primitives.Point
Matches(Point, Point)
Section titled “Matches(Point, Point)”Compares a SadRogue.Primitives.Point to a Microsoft.Xna.Framework.Point.
public static bool Matches(this Point self, Point other)Parameters
Section titled “Parameters”self SadRogue.Primitives.Point
other Microsoft.Xna.Framework.Point