Click or drag to resize

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)
Syntax
[SerializableAttribute]
public struct Vector2f : IEquatable<Vector2f>, 
	IComparable<Vector2f>, IComparable, IEpsilonFComparable<Vector2f>

The Vector2f type exposes the following members.

Constructors
  NameDescription
Public methodVector2f
Creates an instance.
Top
Properties
  NameDescription
Public propertyIsValid
Returns an indication regarding the validity of this vector.
Public propertySquareLength
Returns the square of the length of this vector. This method does not check for the validity of its inputs.
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 methodStatic memberMultiply
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 methodToString
Constructs the string representation of the current vector.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Computes the sum between two vectors.
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.

Public operatorStatic memberMultiply
Multiplies two Vector2f together, returning the dot (internal) product of the two.
Public operatorStatic memberSubtraction
Computes the difference between two vectors.
Top
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.17
See Also