Language

CGVector Struct

Definition

A mathematical vector, with value equality implemented.

public struct CGVector
type CGVector = struct
Inheritance
CGVector

Remarks

Constructors

Name Description
CGVector(NFloat, NFloat)

Fields

Name Description
dx

X component of the vector

dy

Y component of the vector

Methods

Name Description
Equals(Object)

Determines whether this vector is equal to the specified object.

FromString(String)

Creates a CGVector from a stringified representation of the vector.

GetHashCode()

Returns the hash code for this vector.

ToString()

String representation of the vector, suitable to be passed later to FromString(String) method.

Operators

Name Description
Equality(CGVector, CGVector)
Inequality(CGVector, CGVector)

Applies to