Click or drag to resize
Point2f Structure
Rhino 5 for Windows
Represents the two coordinates of a point in two-dimensional space, using Single-precision floating point numbers.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.17 (5.13.60913.21340)
Syntax
[SerializableAttribute]
public struct Point2f : IEquatable<Point2f>, 
	IComparable<Point2f>, IComparable, IEpsilonFComparable<Point2f>

The Point2f type exposes the following members.

Constructors
  NameDescription
Public methodPoint2f(Double, Double)
Initializes a new two-dimensional point from two double-precision floating point numbers as coordinates.

Coordinates will be internally converted to floating point numbers. This might cause precision loss.

Public methodPoint2f(Single, Single)
Initializes a new two-dimensional point from two components.
Top
Properties
  NameDescription
Public propertyIsValid
Gets a value indicating whether this point is considered valid.
Public propertyStatic memberUnset
Gets the standard unset point.
Public propertyX
Gets or sets the X (first) component of the vector.
Public propertyY
Gets or sets the Y (second) component of the vector.
Top
Methods
  NameDescription
Public methodCompareTo
Compares this Point2f with another Point2f.

Coordinates evaluation priority is first X, then Y.

Public methodEpsilonEquals
Check that all values in other are within epsilon of the values in this
Public methodEquals(Object)
Determines whether the specified System.Object is a Point2f and has the same values as the present point.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Point2f)
Determines whether the specified Point2f has the same values as the present point.
Public methodGetHashCode
Computes a hash number that represents the current point.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Constructs the string representation for the current point.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two Point2f have equal values.
Public operatorStatic memberGreaterThan
Determines whether the first specified Point2f comes after (has superior sorting value than) the second point.

Coordinates evaluation priority is first X, then Y.

Public operatorStatic memberGreaterThanOrEqual
Determines whether the first specified Point2f comes after (has superior sorting value than) the second point, or it is equal to it.

Coordinates evaluation priority is first X, then Y.

Public operatorStatic memberInequality
Determines whether two Point2f have different values.
Public operatorStatic memberLessThan
Determines whether the first specified Point2f comes before (has inferior sorting value than) the second point.

Coordinates evaluation priority is first X, then Y.

Public operatorStatic memberLessThanOrEqual
Determines whether the first specified Point2f comes before (has inferior sorting value than) the second point, or it is equal to it.

Coordinates evaluation priority is first X, then Y.

Top
See Also