Skip to content

SadRoguePointExtensions Class

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

C#
public static class SadRoguePointExtensions

Inheritance object

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

C#
public static Point ToMonoPoint(this Point self)

self SadRogue.Primitives.Point

Microsoft.Xna.Framework.Point

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

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

self SadRogue.Primitives.Point

other Microsoft.Xna.Framework.Point

SadRogue.Primitives.Point

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

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

self SadRogue.Primitives.Point

other Microsoft.Xna.Framework.Point

SadRogue.Primitives.Point

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

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

self SadRogue.Primitives.Point

other Microsoft.Xna.Framework.Point

SadRogue.Primitives.Point

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

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

self SadRogue.Primitives.Point

other Microsoft.Xna.Framework.Point

SadRogue.Primitives.Point

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

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

self SadRogue.Primitives.Point

other Microsoft.Xna.Framework.Point

bool