Point2d

class rhino3dm.Point2d
Point2d(x, y)

Initializes a new instance of from coordinates.

Parameters:
  • x (float) – The X (first) coordinate.

  • y (float) – The Y (second) coordinate.

X

float: Gets or sets the X (first) coordinate of the point.

Y

float: Gets or sets the Y (second) coordinate of the point.

Encode()

[todo] add documentation

__repr__()

[todo] add documentation

DistanceTo(other)

Computes the distance between two points.

Parameters:

other (rhino3dm.Point2d) – Another point.

Returns:

The length of the line between the two points, or 0 if either point is invalid.

Return type:

float