[]
Define a Vector class that represents the mathematic vector.
public class Vector<T> : ICloneable
| Name | Description |
|---|---|
| T |
| Name | Description |
|---|---|
| Vector() | Initializes a new instance of the Vector<T> class. |
| Vector(int) | Initializes a new instance of the Vector<T> class. |
| Vector(params T[]) | Initializes a new instance of the Vector<T> class. |
| Name | Description |
|---|---|
| _T | Saves the type of T. |
| _data | Saves the data of this vector. |
| Name | Description |
|---|---|
| Dimension | Gets or sets the dimension of the vector. |
| Elements | Gets the all elements in the vector. |
| IsIdentity | Gets a value indicating whether this Vector object is indentity vector. |
| IsZero | Gets a value indicating whether this Vector object is zero vector. |
| this[int] | Gets or sets the value of element at special index. |
| Modul | Get the modul of the this vector. |
| Name | Description |
|---|---|
| Add(Vector<T>) | Add a special vector to this vector. |
| CalculateModul(Vector<T>) | Get the modul of the special vector. |
| Clone() | Create a new object that is a copy of this Vector. |
| CrossMultiply(Vector<T>) | Cross multiply a speical vector to this vector. |
| CrossMultiply(Vector<T>, Vector<T>) | Defines the descarts multiplication operation for vector. |
| DotMultiply(Vector<T>) | Dot multiply a speical vector to this vector. |
| Equals(object) | Determines whether the specified System.Object is equal to the current System.Object. |
| GetHashCode() | Serves as a hash function for a particular type. System.Object.GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
| ToString() | Returns a string that represents the current vector. |
| Name | Description |
|---|---|
| operator +(Vector<T>, Vector<T>) | Defines the + operator for vector. |
| operator ==(Vector<T>, Vector<T>) | Defines the == operator for vector. |
| operator !=(Vector<T>, Vector<T>) | Defines the == operator for vector. |
| operator *(Vector<T>, Vector<T>) | Defines the * operator for vector. |
| operator -(Vector<T>, Vector<T>) | Defines the binary - operator for vector. |
| operator -(Vector<T>) | Defines the unary - operator for vector. |