Class Vector
Last update: 16.07.2025Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the vector.
public sealed class Vector : VectorBase
Inheritance
object ← VectorBase ← Vector
Inherited Members
VectorBase.GetArray(), VectorBase.Set(double, double, double), VectorBase.Set(double[]), VectorBase.Set(VectorBase), VectorBase.DotProduct(VectorBase), VectorBase.CrossProduct(VectorBase), VectorBase.GetDistance(VectorBase), VectorBase.GetOrthoVector(VectorBase), VectorBase.GetOrthoVector(), VectorBase.MakeUnitVector(), VectorBase.Clone(), VectorBase.ToString(), VectorBase.Equals(object), VectorBase.GetObjectData(SerializationInfo, StreamingContext), VectorBase.op_AdditionAssignment(VectorBase, VectorBase), VectorBase.op_SubtractionAssignment(VectorBase, VectorBase), VectorBase.op_MultiplicationAssignment(VectorBase, double), VectorBase.op_MultiplicationAssignment(VectorBase, VectorBase), VectorBase.op_DivisionAssignment(VectorBase, double), VectorBase.Magnitude, VectorBase.this[uint], VectorBase.this[Coordinate], VectorBase.Z, VectorBase.Y, VectorBase.X
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
Vector(double[])
Initializes a new instance of the
public Vector(double[] arVec)
Parameters
arVec double[]
The arVec.
Vector(double, double, double)
Initializes a new instance of the
public Vector(double dX, double dY, double dZ)
Parameters
dX double
The X.
dY double
The Y.
dZ double
The Z.
Vector(VectorBase)
Initializes a new instance of the
public Vector(VectorBase vec)
Parameters
vec VectorBase
The vec.
Vector()
Initializes a new instance of the
public Vector()
Vector(SerializationInfo, StreamingContext)
Initializes a new instance of the
protected Vector(SerializationInfo info, StreamingContext context)
Parameters
info SerializationInfo
The info.
context StreamingContext
The context.
Properties
Magnitude
Gets the magnitude of vector(UInt32).
public override double Magnitude { get; }
Property Value
X
Gets or sets the X of vector.
public override double X { get; set; }
Property Value
Y
Gets or sets the Y of vector.
public override double Y { get; set; }
Property Value
Z
Gets or sets the Z of vector.
public override double Z { get; set; }
Property Value
this[uint]
public override double this[uint n] { get; set; }
Property Value
this[Coordinate]
public override double this[Coordinate n] { get; set; }
Property Value
Methods
Clone()
clone.
public override sealed object Clone()
Returns
The clone.
CrossProduct(VectorBase)
Cross product.
public override sealed Vector CrossProduct(VectorBase vec)
Parameters
vec VectorBase
The vec.
Returns
Result of product
DotProduct(VectorBase)
Dot product.
public override sealed double DotProduct(VectorBase vec)
Parameters
vec VectorBase
The vec.
Returns
Result of product
GetArray()
Gets the array.
public override sealed double[] GetArray()
Returns
double[]
The array.
GetDistance(VectorBase)
Gets the distance.
public override sealed double GetDistance(VectorBase vec)
Parameters
vec VectorBase
The vec.
Returns
The distance
GetObjectData(SerializationInfo, StreamingContext)
Customize the GetObjectData function.
public override sealed void GetObjectData(SerializationInfo info, StreamingContext __unnamed001)
Parameters
info SerializationInfo
The info.
__unnamed001 StreamingContext
GetOrthoVector(VectorBase)
Gets the ortho vector.
public override sealed Vector GetOrthoVector(VectorBase vecCandidate)
Parameters
vecCandidate VectorBase
The candidate.
Returns
The ortho vector.
GetOrthoVector()
Gets the ortho vector.
public override sealed Vector GetOrthoVector()
Returns
The ortho vector.
GetSchema()
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return nullNothingnullptra null reference (Nothing in Visual Basic) (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
public XmlSchema GetSchema()
Returns
MakeUnitVector()
Mate unit vector.
public override sealed void MakeUnitVector()
ReadXml(XmlReader)
Generates an object from its XML representation.
public void ReadXml(XmlReader reader)
Parameters
reader XmlReader
The XmlReader stream from which the object is deserialized.
Set(double, double, double)
Sets the value of vector.
public override sealed void Set(double dX, double dY, double dZ)
Parameters
dX double
The X.
dY double
The Y.
dZ double
The Z.
Set(double[])
Sets the value of vector.
public override sealed void Set(double[] arr)
Parameters
arr double[]
The arr.
Set(VectorBase)
Sets the value of vector.
public override sealed void Set(VectorBase vec)
Parameters
vec VectorBase
The vec.
WriteXml(XmlWriter)
Converts an object into its XML representation.
public void WriteXml(XmlWriter writer)
Parameters
writer XmlWriter
The XmlWriter stream to which the object is serialized.
Operators
implicit operator Vector(Vector)
public static implicit operator Vector(Vector vec)
Parameters
vec Vector
Returns
implicit operator Vector(Vector)
public static implicit operator Vector(Vector vec)
Parameters
vec Vector
Returns
Vector