Skip to content

MonoPointExtensions Class

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

C#
public static class MonoPointExtensions

Inheritance object

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

C#
public static Point ToPoint(this Point self)

self Microsoft.Xna.Framework.Point

SadRogue.Primitives.Point

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

C#
public static Point Add(this Point self, Point other)

self Microsoft.Xna.Framework.Point

other SadRogue.Primitives.Point

Microsoft.Xna.Framework.Point

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

C#
public static Point Add(this Point self, int i)

self Microsoft.Xna.Framework.Point

i int

Microsoft.Xna.Framework.Point

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

C#
public static Point Add(this Point self, Direction dir)

self Microsoft.Xna.Framework.Point

dir SadRogue.Primitives.Direction

Microsoft.Xna.Framework.Point

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

C#
public static Point Subtract(this Point self, Point other)

self Microsoft.Xna.Framework.Point

other SadRogue.Primitives.Point

Microsoft.Xna.Framework.Point

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

C#
public static Point Subtract(this Point self, int i)

self Microsoft.Xna.Framework.Point

i int

Microsoft.Xna.Framework.Point

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

C#
public static Point Subtract(this Point self, Direction dir)

self Microsoft.Xna.Framework.Point

dir SadRogue.Primitives.Direction

Microsoft.Xna.Framework.Point

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

C#
public static Point Multiply(this Point self, Point other)

self Microsoft.Xna.Framework.Point

other SadRogue.Primitives.Point

Microsoft.Xna.Framework.Point

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

C#
public static Point Multiply(this Point self, int i)

self Microsoft.Xna.Framework.Point

i int

Microsoft.Xna.Framework.Point

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

C#
public static Point Multiply(this Point self, double d)

self Microsoft.Xna.Framework.Point

d double

Microsoft.Xna.Framework.Point

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

C#
public static Point Divide(this Point self, Point other)

self Microsoft.Xna.Framework.Point

other SadRogue.Primitives.Point

Microsoft.Xna.Framework.Point

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

C#
public static Point Divide(this Point self, double d)

self Microsoft.Xna.Framework.Point

d double

Microsoft.Xna.Framework.Point

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

C#
public static bool Matches(this Point self, Point other)

self Microsoft.Xna.Framework.Point

other SadRogue.Primitives.Point

bool