Table of Contents

Struct RPoint

Namespace
TheArtOfDev.HtmlRenderer.Adapters.Entities
Assembly
StockSharp.Xaml.dll

Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

public struct RPoint
Inherited Members
Extension Methods

Constructors

RPoint(double, double)

Initializes a new instance of the RPoint class with the specified coordinates.

public RPoint(double x, double y)

Parameters

x double

The horizontal position of the point.

y double

The vertical position of the point.

Fields

Empty

Represents a new instance of the RPoint class with member data left uninitialized.

public static readonly RPoint Empty

Field Value

RPoint

Properties

IsEmpty

Gets a value indicating whether this RPoint is empty.

public bool IsEmpty { get; }

Property Value

bool

true if both X and Y are 0; otherwise, false.

X

Gets or sets the x-coordinate of this RPoint.

public double X { get; set; }

Property Value

double

The x-coordinate of this RPoint.

Y

Gets or sets the y-coordinate of this RPoint.

public double Y { get; set; }

Property Value

double

The y-coordinate of this RPoint.

Methods

Add(RPoint, RSize)

Translates a given RPoint by a specified SizeF .

public static RPoint Add(RPoint pt, RSize sz)

Parameters

pt RPoint

The RPoint to translate.

sz RSize

The SizeF that specifies the numbers to add to the coordinates of pt .

Returns

RPoint

The translated RPoint.

Equals(object)

Specifies whether this RPoint contains the same coordinates as the specified object .

public override bool Equals(object obj)

Parameters

obj object

The object to test.

Returns

bool

This method returns true if obj is a RPoint and has the same coordinates as this Point .

GetHashCode()

Returns a hash code for this RPoint structure.

public override int GetHashCode()

Returns

int

An integer value that specifies a hash value for this RPoint structure.

Subtract(RPoint, RSize)

Translates a RPoint by the negative of a specified size.

public static RPoint Subtract(RPoint pt, RSize sz)

Parameters

pt RPoint

The RPoint to translate.

sz RSize

The SizeF that specifies the numbers to subtract from the coordinates of pt .

Returns

RPoint

The translated RPoint.

ToString()

Converts this RPoint to a human readable string.

public override string ToString()

Returns

string

A string that represents this RPoint.

Operators

operator +(RPoint, RSize)

Translates the RPoint by the specified SizeF .

public static RPoint operator +(RPoint pt, RSize sz)

Parameters

pt RPoint

The RPoint to translate.

sz RSize

The SizeF that specifies the numbers to add to the x- and y-coordinates of the RPoint .

Returns

RPoint

The translated RPoint.

operator ==(RPoint, RPoint)

Compares two RPoint structures. The result specifies whether the values of the X and Y properties of the two RPoint structures are equal.

public static bool operator ==(RPoint left, RPoint right)

Parameters

left RPoint

A RPoint to compare.

right RPoint

A RPoint to compare.

Returns

bool

true if the X and Y values of the left and right RPoint structures are equal; otherwise, false.

operator !=(RPoint, RPoint)

Determines whether the coordinates of the specified points are not equal.

public static bool operator !=(RPoint left, RPoint right)

Parameters

left RPoint

A RPoint to compare.

right RPoint

A RPoint to compare.

Returns

bool

true to indicate the X and Y values of left and right are not equal; otherwise, false.

operator -(RPoint, RSize)

Translates a RPoint by the negative of a specified SizeF .

public static RPoint operator -(RPoint pt, RSize sz)

Parameters

pt RPoint

The RPoint to translate.

sz RSize

The SizeF that specifies the numbers to subtract from the coordinates of pt .

Returns

RPoint

The translated RPoint.