点击或拖拽改变大小

Vector 运算符与类型转换

Vector 类型公开以下成员。

运算符
  名称说明
公共运算符静态成员Addition(Vector, Point)
Operator Vector + Point
公共运算符静态成员Addition(Vector, Vector)
Operator Vector + Vector
公共运算符静态成员Division
Operator Vector / float
公共运算符静态成员Equality
公共运算符静态成员(Vector to Size)
Explicit conversion to Size. Note that since Size cannot contain negative values, the resulting size will contains the absolute values of X and Y
公共运算符静态成员(Vector to Point)
Explicit conversion to Point
公共运算符静态成员Inequality
Compares two Vector instances for exact inequality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. Furthermore, using this equality operator, float.NaN is not equal to itself.
公共运算符静态成员Multiply(Single, Vector)
Operator float * Vector
公共运算符静态成员Multiply(Vector, Matrix)
Operator Vector * Matrix
公共运算符静态成员Multiply(Vector, Vector)
Operator Vector * Vector, interpreted as their dot product
公共运算符静态成员Multiply(Vector, Single)
Operator Vector * float
公共运算符静态成员Subtraction
Operator Vector - Vector
公共运算符静态成员UnaryNegation
Operator -Vector (unary negation)
Top
参见