Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Struct: RT.Coordinates.PointD

Summary

Represents a point in 2D space.

Constructors

PointD(double x, double y)
Constructor.

Instance methods

bool
Equals(PointD other)
Implements IEquatable<T>.
bool
Equals(object obj)
  • Overrides: object.Equals(object)
Refer to the documentation for object.Equals.
int
  • Overrides: object.GetHashCode()
Refer to the documentation for object.GetHashCode.
PointD
Rotate(double angle)
Rotates the current point by the specified angle about the origin. (see also remarks)
PointD
Rotate(double angle, PointD about)
Rotates the current point by the specified angle about the specified point. (see also remarks)
PointD
RotateDeg(double angle)
Rotates the current point by the specified angle about the origin. (see also remarks)
PointD
RotateDeg(double angle, PointD about)
Rotates the current point by the specified angle about the specified point. (see also remarks)
string
  • Overrides: object.ToString()
Refer to the documentation for object.ToString.

Operators

PointDAdds two points (treating them as vectors).
PointD
operator/(PointD p, double amount)
Divides a point by a specified scalar factor.
PointD
operator*(PointD p, double amount)
Multiplies a point by a specified scalar factor.
PointD
operator*(double amount, PointD p)
PointDSubtracts a point from another (treating them as vectors).

Instance properties

doubleCalculates the distance of this point from the origin.
doubleReturns the theta (angle) of the vector represented by this PointD.
PointDReturns the unit vector in the same direction as this one.
doubleX-coordinate.
doubleY-coordinate.