Skip to content

T_Rhino_Geometry_Vector2f

Will Pearson edited this page Aug 12, 2016 · 2 revisions

Vector2f Structure

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

Syntax

C#

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

VB

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

The Vector2f type exposes the following members.

Properties

 

Name Description
Public property X Gets or sets the X (first) component of this vector.
Public property Y Gets or sets the Y (second) component of this vector.
  Back to Top

Methods

 

Name Description
Public method CompareTo Compares this Vector2f with another Vector2f. Components evaluation priority is first X, then Y.
Public method EpsilonEquals Check that all values in other are withing epsilon of the values in this
Public method Equals(Object) Determines whether the specified System.Object is a Vector2f and has the same values as the present vector. (Overrides ValueType.Equals(Object).)
Public method Equals(Vector2f) Determines whether the specified vector has the same values as the present vector.
Public method GetHashCode Computes a hash number that represents the current vector. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Multiply Multiplies two Vector2f together, returning the dot (internal) product of the two. (Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Public method ToString Constructs the string representation of the current vector. (Overrides ValueType.ToString().)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Equality Determines whether two vectors have equal values.
Public operatorStatic member GreaterThan 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 member GreaterThanOrEqual 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 member Inequality Determines whether two vectors have different values.
Public operatorStatic member LessThan 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 member LessThanOrEqual 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.
Public operatorStatic member Multiply Multiplies two Vector2f together, returning the dot (internal) product of the two.
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

Clone this wiki locally