点击或拖拽改变大小

Vector 结构

[缺少 "T:CPF.Drawing.Vector" 的 <summary> 文档]

命名空间:  CPF.Drawing
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
[SerializableAttribute]
public struct Vector : IFormattable

Vector 类型公开以下成员。

构造函数
  名称说明
公共方法Vector
初始化 Vector 类的一个新实例
Top
属性
  名称说明
公共属性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.
Top
方法
  名称说明
公共方法静态成员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.
Top
运算符
  名称说明
公共运算符静态成员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
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
Top
参见