skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PointExtensions

Extensions for the Point class.

Inheritance
System.Object
PointExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll

Syntax

public static class PointExtensions

Methods

Add(Point, Point)

Adds the specified points together.

Declaration
public static Point Add(this Point point, Point point2)
Parameters
Point point

A point.

Point point2

The point2.

Returns
Point

The augmented point.

See Also
Vector

Add(Point, Vector)

Adds the specified point and vector together.

Declaration
public static Point Add(this Point point, Vector vector)
Parameters
Point point

A point.

Vector vector

A vector.

Returns
Point

The augmented point.

See Also
Vector

Distance(Point)

Returns the distance of the point to the origin.

Declaration
public static double Distance(this Point point)
Parameters
Point point

The point.

Returns
System.Double

Distance(Point, Point)

Returns the distance between the specified points.

Declaration
public static double Distance(this Point startPoint, Point endPoint)
Parameters
Point startPoint

The start point.

Point endPoint

The end point.

Returns
System.Double

Distance(Point, Rect)

Distances to rectangle.

Declaration
public static double Distance(this Point point, Rect rect)
Parameters
Point point

The point.

Rect rect

The rectangle.

Returns
System.Double

DistancePoint(Point, Rect)

Distance to rectangle.

Declaration
public static Point DistancePoint(this Point point, Rect rect)
Parameters
Point point

The point.

Rect rect

The rectangle.

Returns
Point

Divide(Point, Double)

Divides the point with the specified factor.

Declaration
public static Point Divide(this Point point, double factor)
Parameters
Point point

The point.

System.Double factor

The factor.

Returns
Point

IsEmpty(Point)

Determines whether the specified point is empty.

Declaration
public static bool IsEmpty(this Point point)
Parameters
Point point

The point.

Returns
System.Boolean

True if the specified point is empty; otherwise, false.

IsXBetween(Point, Point, Point)

Determines whether [is X between] [the specified point].

Declaration
public static bool IsXBetween(this Point point, Point firstPoint, Point secondPoint)
Parameters
Point point

The point.

Point firstPoint

The first point.

Point secondPoint

The second point.

Returns
System.Boolean

true if [is X between] [the specified point]; otherwise, false.

IsYBetween(Point, Point, Point)

Determines whether [is Y between] [the specified point].

Declaration
public static bool IsYBetween(this Point point, Point firstPoint, Point secondPoint)
Parameters
Point point

The point.

Point firstPoint

The first point.

Point secondPoint

The second point.

Returns
System.Boolean

true if [is Y between] [the specified point]; otherwise, false.

Multiply(Point, Double)

Multiplies the point with the specified multiplier.

Declaration
public static Point Multiply(this Point point, double multiplier)
Parameters
Point point

The point.

System.Double multiplier

The multiplier.

Returns
Point

Rotate(Point, Point, Double)

Rotates the point.

Declaration
public static Point Rotate(this Point point, Point pivot, double angle)
Parameters
Point point

The point.

Point pivot

The pivot.

System.Double angle

The angle.

Returns
Point

Snap(Point, Int32, Int32)

Snaps a point by changing the X and Y coordinates to the closest value dividable by the snapping value.

Declaration
public static Point Snap(this Point point, int snapX, int snapY)
Parameters
Point point

The point.

System.Int32 snapX

The horizontal snapping value.

System.Int32 snapY

The vertical snapping value.

Returns
Point

Returns the snapped point.

Substract(Point, Point)

Subtracts point2 from point1.

Declaration
public static Point Substract(this Point point1, Point point2)
Parameters
Point point1

Point point2

Returns
Point

Subtract(Point, Point)

Subtracts the specified point1.

Declaration
public static Vector Subtract(this Point point1, Point point2)
Parameters
Point point1

Point point2

Returns
Vector

Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.