編集

次の方法で共有


CGVector Struct

Definition

A mathematical vector, with value equality implemented.

public struct CGVector
type CGVector = struct
Inheritance
CGVector

Remarks

Constructors

CGVector(nfloat, nfloat)

Creates a vector from an x and y components.

Fields

dx

X component of the vector

dy

Y component of the vector

Methods

Equals(Object)
FromString(String)

Creates a CGVector from a stringified representation of the vector.

GetHashCode()
ToString()

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

Operators

Equality(CGVector, CGVector)
Inequality(CGVector, CGVector)

Applies to