Struct
RadPoint

Represents a structure that defines a location (X, Y) in a two-dimensional space.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public struct RadPoint

Inherited Members ValueType.ToString()

Constructors

RadPoint(double, double)

Initializes a new instance of the RadPoint struct.

Declaration

cs-api-definition
public RadPoint(double x, double y)

Parameters

x

double

The X-coordinate of the point.

y

double

The Y-coordinate of the point.

Fields

Empty

A RadPoint instance which X and Y values are set to 0.

Declaration

cs-api-definition
public static readonly RadPoint Empty

Field Value

RadPoint

X

The X-coordinate of the point.

Declaration

cs-api-definition
public double X

Field Value

double

Y

The Y-coordinate of the point.

Declaration

cs-api-definition
public double Y

Field Value

double

Methods

Equals(object)

Determines whether the specified object is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides ValueType.GetHashCode()

Round(RadPoint)

Rounds the X and Y members of the specified RadPoint.

Declaration

cs-api-definition
public static RadPoint Round(RadPoint point)

Parameters

point

RadPoint

The point to round.

Returns

RadPoint

A new RadPoint with rounded coordinates.

Operators

operator !=(RadPoint, RadPoint)

Determines whether two RadPoint structures are not equal.

Declaration

cs-api-definition
public static bool operator !=(RadPoint pt1, RadPoint pt2)

Parameters

pt1

RadPoint

The first RadPoint to compare.

pt2

RadPoint

The second RadPoint to compare.

Returns

bool

True if the points are not equal; otherwise, false.

operator ==(RadPoint, RadPoint)

Determines whether two RadPoint structures are equal.

Declaration

cs-api-definition
public static bool operator ==(RadPoint pt1, RadPoint pt2)

Parameters

pt1

RadPoint

The first RadPoint to compare.

pt2

RadPoint

The second RadPoint to compare.

Returns

bool

True if the points are equal; otherwise, false.