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)
|