Vector 结构 |
[缺少 "T:CPF.Drawing.Vector" 的 <summary> 文档]
命名空间: CPF.Drawing
[SerializableAttribute] public struct Vector : IFormattable
Vector 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Length |
Length Property - the length of this Vector
| |
LengthSquared |
LengthSquared Property - the squared length of this Vector
| |
X |
X - float. Default value is 0.
| |
Y |
Y - float. Default value is 0.
|
名称 | 说明 | |
---|---|---|
Add(Vector, Point) |
Add: Vector + Point
| |
Add(Vector, Vector) |
Add: Vector + Vector
| |
AngleBetween |
AngleBetween - the angle between 2 vectors
| |
CrossProduct |
CrossProduct - Returns the cross product: vector1.X*vector2.Y - vector1.Y*vector2.X
| |
Determinant |
Determinant - Returns the determinant det(vector1, vector2)
| |
Divide |
Multiply: Vector / float
| |
Equals(Object) |
Equals - compares this Vector with the passed in object. In this equality
float.NaN is equal to itself, unlike in numeric equality.
Note that float values can acquire error when operated upon, such that
an exact comparison between two values which
are logically equal may fail.
(重写 ValueTypeEquals(Object).) | |
Equals(Vector) |
Equals - compares this Vector with the passed in object. In this equality
float.NaN is equal to itself, unlike in numeric equality.
Note that float values can acquire error when operated upon, such that
an exact comparison between two values which
are logically equal may fail.
| |
Equals(Vector, Vector) |
Compares two Vector instances for object equality. In this equality
float.NaN is equal to itself, unlike in numeric equality.
Note that float values can acquire error when operated upon, such that
an exact comparison between two values which
are logically equal may fail.
| |
GetHashCode |
Returns the HashCode for this Vector
(重写 ValueTypeGetHashCode.) | |
GetType | (继承自 Object。) | |
Multiply(Single, Vector) |
Multiply: float * Vector
| |
Multiply(Vector, Matrix) |
Multiply: Vector * Matrix
| |
Multiply(Vector, Vector) |
Multiply - Returns the dot product: vector1.X*vector2.X + vector1.Y*vector2.Y
| |
Multiply(Vector, Single) |
Multiply: Vector * float
| |
Negate |
Negates the values of X and Y on this Vector
| |
Normalize |
Normalize - Updates this Vector to maintain its direction, but to have a length
of 1. This is equivalent to dividing this Vector by Length
| |
Subtract |
Subtract: Vector - Vector
| |
ToString |
Creates a string representation of this object based on the current culture.
(重写 ValueTypeToString.) | |
ToString(IFormatProvider) |
Creates a string representation of this object based on the IFormatProvider
passed in. If the provider is null, the CurrentCulture is used.
|
名称 | 说明 | |
---|---|---|
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)
|
名称 | 说明 | |
---|---|---|
ConvertTo |
类型转换
(由 ObjectExtenstions 定义。) | |
Delay |
延迟操作
(由 ObjectExtenstions 定义。) | |
Equal |
对象是否相等
(由 ObjectExtenstions 定义。) | |
GetCreationCode | (由 ObjectExtenstions 定义。) | |
GetPropretyValue |
获取对象属性值
(由 ObjectExtenstions 定义。) | |
GetValue |
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。) | |
Invoke |
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。) | |
SetPropretyValue |
设置属性值
(由 ObjectExtenstions 定义。) | |
SetValue |
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。) |