Class MPoint
Assembly: Mapsui.dll
Syntax
public class MPoint : IEquatable<MPoint>
Constructors
|
Edit this page
View Source
MPoint()
Declaration
|
Edit this page
View Source
MPoint(MPoint)
Declaration
public MPoint(MPoint point)
Parameters
Type |
Name |
Description |
MPoint |
point |
|
|
Edit this page
View Source
MPoint(double, double)
Declaration
public MPoint(double x, double y)
Parameters
Properties
|
Edit this page
View Source
MRect
Declaration
public MRect MRect { get; }
Property Value
|
Edit this page
View Source
X
Declaration
public double X { get; set; }
Property Value
|
Edit this page
View Source
Y
Declaration
public double Y { get; set; }
Property Value
Methods
|
Edit this page
View Source
Copy()
Declaration
Returns
|
Edit this page
View Source
Distance(MPoint)
Declaration
public double Distance(MPoint point)
Parameters
Type |
Name |
Description |
MPoint |
point |
|
Returns
|
Edit this page
View Source
Equals(MPoint?)
Declaration
public bool Equals(MPoint? point)
Parameters
Type |
Name |
Description |
MPoint |
point |
|
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
Offset(double, double)
Declaration
public MPoint Offset(double offsetX, double offsetY)
Parameters
Returns
|
Edit this page
View Source
Rotate(double)
Calculates a new point by rotating this point clockwise about the origin (0,0)
Declaration
public MPoint Rotate(double degrees)
Parameters
Type |
Name |
Description |
double |
degrees |
Angle to rotate clockwise (degrees)
|
Returns
Type |
Description |
MPoint |
Returns the rotated point
|
|
Edit this page
View Source
Rotate(double, MPoint)
Calculates a new point by rotating this point clockwise about the specified center point
Declaration
public MPoint Rotate(double degrees, MPoint center)
Parameters
Type |
Name |
Description |
double |
degrees |
Angle to rotate clockwise (degrees)
|
MPoint |
center |
MPoint about which to rotate
|
Returns
Type |
Description |
MPoint |
Returns the rotated point
|
|
Edit this page
View Source
Rotate(double, double, double)
Calculates a new point by rotating this point clockwise about the specified center point
Declaration
public MPoint Rotate(double degrees, double centerX, double centerY)
Parameters
Type |
Name |
Description |
double |
degrees |
Angle to rotate clockwise (degrees)
|
double |
centerX |
X coordinate of point about which to rotate
|
double |
centerY |
Y coordinate of point about which to rotate
|
Returns
Type |
Description |
MPoint |
Returns the rotated point
|
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
operator +(MPoint, MPoint)
Declaration
public static MPoint operator +(MPoint point1, MPoint point2)
Parameters
Returns
|
Edit this page
View Source
operator *(MPoint, double)
Declaration
public static MPoint operator *(MPoint point1, double multiplier)
Parameters
Returns
|
Edit this page
View Source
operator -(MPoint, MPoint)
Declaration
public static MPoint operator -(MPoint point1, MPoint point2)
Parameters
Returns
Implements