title | page_title |
---|---|
Point |
API reference for methods and fields of Kendo UI Geometry Point |
A point representing a location (x, y) in two-dimensional coordinate space.
<script>
var geom = kendo.geometry;
var point = new geom.Point(10, 20);
</script>
The x coordinate of the point.
The y coordinate of the point.
Creates a Point instance from various parameters.
Any of the following values:
- The x coordinate of the point.
- An array of x and y coordinates.
- An existing Point instance.
The y coordinate of the point. Required only if the first argument is a number.
kendo.geometry.Point
The new or supplied Point instance.
Returns a new Point with the minimum x and y coordinates of all Point arguments.
kendo.geometry.Point
A new Point instance.
Returns a new Point with the maximum x and y coordinates of all Point arguments.
kendo.geometry.Point
A new Point instance.
Returns a Point with the smallest representable coordinates.
kendo.geometry.Point
A new Point instance with minimum coordinates.
Returns a Point with the largest representable coordinates.
kendo.geometry.Point
A new Point instance with maximum coordinates.
Creates a new instance with the same coordinates.
kendo.geometry.Point
A new Point instance with the same coordinates.
Calculates the distance to another point.
The point to calculate the distance to.
Number
The straight line distance to the given point.
Compares this point with another instance.
The point to compare with.
Boolean
true if the point coordinates match; false otherwise.
Gets the x coordinate value.
Number
The current x coordinate value.
Gets the y coordinate value.
Number
The current y coordinate value.
Moves the point to the specified x and y coordinates.
The new X coordinate.
The new Y coordinate.
kendo.geometry.Point
The current point instance.
Rotates the point around the given center.
Angle in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.
The rotation center. Can be a Point instance or an [x, y] array.
kendo.geometry.Point
The current Point instance.
Rounds the point coordinates to the specified number of fractional digits.
Number of fractional digits.
kendo.geometry.Point
The current Point instance.
Scales the point coordinates along the x and y axis.
The x scale multiplier.
The y scale multiplier.
kendo.geometry.Point
The current point instance.
Scales the point coordinates on a copy of the current point. The callee coordinates will remain unchanged.
The x scale multiplier.
The y scale multiplier.
kendo.geometry.Point
The new Point instance.
Sets the x coordinate to a new value.
The new x coordinate value.
kendo.geometry.Point
The current Point instance.
Sets the y coordinate to a new value.
The new y coordinate value.
kendo.geometry.Point
The current Point instance.
Returns the point coordinates as an [x, y] array.
(Optional) Number of fractional digits.
Array
An array representation of the point, e.g. [10, 20]
Formats the point value to a string.
(Optional) Number of fractional digits.
The separator to place between coordinates.
String
A string representation of the point, e.g. "10 20".
Applies a transformation to the point coordinates. The current coordinates will be overriden.
The transformation to apply.
kendo.geometry.Point
The current Point instance.
Applies a transformation on a copy of the current point. The callee coordinates will remain unchanged.
The transformation to apply.
kendo.geometry.Point
The new Point instance.
Translates the point along the x and y axis.
The distance to move along the X axis.
The distance to move along the Y axis.
kendo.geometry.Point
The current point instance.
Translates the point by using a Point instance as a vector of translation.
The vector of translation. Can be either a Point instance or an [x, y] array.
kendo.geometry.Point
The current point instance.