documentationfor yFiles for HTML 2.6

Usages of Point2D

Properties

locationin Point2DSets the location of this point to the same values as for the given point.

Method Return Values

toPoint2D ()in PointCreates a Point2D from a given Point.

Method Parameters

distance (Point2D)in Point2DCalculates the distance between this points and another one.
distanceSq (Point2D)in Point2DCalculates the squared distance between this points and another one.
setFrameFromCenter (Point2D, Point2D)in Rectangle2DSets the outer bounds of this rectangle based on the specified new center and corner.
setFrameFromDiagonal (Point2D, Point2D)in Rectangle2DSets the outer bounds of this rectangle based on the end points of one of its diagonals.