Skip to main content
Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the vector.

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<T>(object, LinkPropertyType)

Constructors

Vector(double[])

Initializes a new instance of the Vector class.

Parameters

arVec double[] The arVec.

Vector(double, double, double)

Initializes a new instance of the Vector class.

Parameters

dX double The X. dY double The Y. dZ double The Z.

Vector(VectorBase)

Initializes a new instance of the Vector class.

Parameters

vec VectorBase The vec.

Vector()

Initializes a new instance of the Vector class.

Vector(SerializationInfo, StreamingContext)

Initializes a new instance of the Vector class.

Parameters

info SerializationInfo The info. context StreamingContext The context.

Properties

Magnitude

Gets the magnitude of vector(UInt32).

Property Value

double

X

Gets or sets the X of vector.

Property Value

double

Y

Gets or sets the Y of vector.

Property Value

double

Z

Gets or sets the Z of vector.

Property Value

double

this[uint]

Property Value

double

this[Coordinate]

Property Value

double

Methods

Clone()

clone.

Returns

object The clone.

CrossProduct(VectorBase)

Cross product.

Parameters

vec VectorBase The vec.

Returns

Vector Result of product

DotProduct(VectorBase)

Dot product.

Parameters

vec VectorBase The vec.

Returns

double Result of product

GetArray()

Gets the array.

Returns

double[] The array.

GetDistance(VectorBase)

Gets the distance.

Parameters

vec VectorBase The vec.

Returns

double The distance

GetObjectData(SerializationInfo, StreamingContext)

Customize the GetObjectData function.

Parameters

info SerializationInfo The info. __unnamed001 StreamingContext

GetOrthoVector(VectorBase)

Gets the ortho vector.

Parameters

vecCandidate VectorBase The candidate.

Returns

Vector The ortho vector.

GetOrthoVector()

Gets the ortho vector.

Returns

Vector 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.

Returns

XmlSchema

MakeUnitVector()

Mate unit vector.

ReadXml(XmlReader)

Generates an object from its XML representation.

Parameters

reader XmlReader The XmlReader stream from which the object is deserialized.

Set(double, double, double)

Sets the value of vector.

Parameters

dX double The X. dY double The Y. dZ double The Z.

Set(double[])

Sets the value of vector.

Parameters

arr double[] The arr.

Set(VectorBase)

Sets the value of vector.

Parameters

vec VectorBase The vec.

WriteXml(XmlWriter)

Converts an object into its XML representation.

Parameters

writer XmlWriter The XmlWriter stream to which the object is serialized.

Operators

implicit operator Vector(Vector)

Parameters

vec Vector

Returns

Vector

implicit operator Vector(Vector)

Parameters

vec Vector

Returns

Vector