New to Telerik UI for WinFormsStart a free 30-day trial

RadPoint

Struct

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

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

C#
public struct RadPoint

Inherited Members ValueType.ToString()

Constructors

Initializes a new instance of the RadPoint struct.

C#
public RadPoint(double x, double y)
Parameters:xdouble

The X-coordinate of the point.

ydouble

The Y-coordinate of the point.

Fields

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

C#
public static readonly RadPoint Empty

The X-coordinate of the point.

C#
public double X

The Y-coordinate of the point.

C#
public double Y

Methods

Determines whether the specified object is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Returns a hash code for this instance.

C#
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()

Rounds the X and Y members of the specified RadPoint.

C#
public static RadPoint Round(RadPoint point)
Parameters:pointRadPoint

The point to round.

Returns:

RadPoint

A new RadPoint with rounded coordinates.

Operators

Determines whether two RadPoint structures are not equal.

C#
public static bool operator !=(RadPoint pt1, RadPoint pt2)
Parameters:pt1RadPoint

The first RadPoint to compare.

pt2RadPoint

The second RadPoint to compare.

Returns:

bool

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

Determines whether two RadPoint structures are equal.

C#
public static bool operator ==(RadPoint pt1, RadPoint pt2)
Parameters:pt1RadPoint

The first RadPoint to compare.

pt2RadPoint

The second RadPoint to compare.

Returns:

bool

True if the points are equal; otherwise, false.