Click or drag to resize
Vector2f Structure
Rhino 5 for Windows
Represents the two components of a vector 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 Vector2f : IEquatable<Vector2f>, 
	IComparable<Vector2f>, IComparable, IEpsilonFComparable<Vector2f>

The Vector2f type exposes the following members.

Properties
  NameDescription
Public propertyX
Gets or sets the X (first) component of this vector.
Public propertyY
Gets or sets the Y (second) component of this vector.
Top
Methods
  NameDescription
Public methodCompareTo
Compares this Vector2f with another Vector2f.

Components evaluation priority is first X, then Y.

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

Components have decreasing evaluation priority: first X, then Y.

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

Components have decreasing evaluation priority: first X, then Y.

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

Components have decreasing evaluation priority: first X, then Y.

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

Components have decreasing evaluation priority: first X, then Y.

Top
See Also