T_Rhino_Geometry_Point2f - mcneel/rhinocommon-api-docs GitHub Wiki

Point2f Structure

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: Rhino 6.0

Syntax

C#

[SerializableAttribute]
public struct Point2f : IEquatable<Point2f>, 
	IComparable<Point2f>, IComparable

VB

<SerializableAttribute>
Public Structure Point2f
	Implements IEquatable(Of Point2f), IComparable(Of Point2f), 
	IComparable

The Point2f type exposes the following members.

Constructors

 

Name Description
Public method Point2f(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 method Point2f(Single, Single) Initializes a new two-dimensional point from two components.
  Back to Top

Properties

 

Name Description
Public property IsValid Gets a value indicating whether this point is considered valid.
Public propertyStatic member Unset Gets the standard unset point.
Public property X Gets or sets the X (first) component of the vector.
Public property Y Gets or sets the Y (second) component of the vector.
  Back to Top

Methods

 

Name Description
Public method CompareTo Compares this Point2f with another Point2f. Coordinates evaluation priority is first X, then Y.
Public method EpsilonEquals Check that all values in other are within epsilon of the values in this
Public method Equals(Object) Determines whether the specified System.Object is a Point2f and has the same values as the present point. (Overrides ValueType.Equals(Object).)
Public method Equals(Point2f) Determines whether the specified Point2f has the same values as the present point.
Public method GetHashCode Computes a hash number that represents the current point. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Constructs the string representation for the current point. (Overrides ValueType.ToString().)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Equality Determines whether two Point2f have equal values.
Public operatorStatic member Explicit(Point2d to Point2f) Converts a double-precision point in a single-precision point. Needs explicit casting to help retain precision.
Public operatorStatic member GreaterThan 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 member GreaterThanOrEqual 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 member Inequality Determines whether two Point2f have different values.
Public operatorStatic member LessThan 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 member LessThanOrEqual 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.
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️