Click or drag to resize

Vector Class

[This is preliminary documentation and is subject to change.]

Represents a vector in 3D space. A vector describes the change in XYZ between two points in 3D space.
Inheritance Hierarchy
SystemObject
  Infrastructure.GeometryVector

Namespace:  Infrastructure.Geometry
Assembly:  Infrastructure.Geometry (in Infrastructure.Geometry.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public sealed class Vector : IEquatable<Vector>

The Vector type exposes the following members.

Constructors
Properties
Methods
  NameDescription
Public methodEquals(Object)
Checks if this instance is equal to the provided object
(Overrides ObjectEquals(Object).)
Public methodEquals(Vector)
Checks if this instance is equal to the provided instance
Public methodGetHashCode
Calculates the hashcode of this instance.
(Overrides ObjectGetHashCode.)
Public methodRotate
Public methodToString
Returns a user-friendly string representation of this vector in 3D space (X, Y, Z)
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Add 2 vectors together, resulting in a new vector
Public operatorStatic memberBitwiseOr
Performs the vector dot product operation
Public operatorStatic memberDivision
Perform scalar division on a vector (= scale a vector) If the scalar value is bigger than 1, it will change the magnitude of the vector (make it shorter) If the scalar value is lesser than 1 but bigger than 0, it will change the magnitude of the vector (make it longer) If the scalar value is bigger than -1 but lesser than 0, it will reverse the direction and change its magnitude (make it longer) If the scalar value is -1, it will reverse the direction of the vector but not change its magnitude If the scalar value is lesser than -1, it will reverse the direction and change its magnitude (make it shorter)
Public operatorStatic memberEquality
Checks if both vectors are equal
Public operatorStatic member(Point to Vector)
Convert a Point to a vector
Public operatorStatic member(Vector3D to Vector)
Public operatorStatic memberInequality
Checks if both vectors are not equal
Public operatorStatic memberLogicalNot
Create a unit vector from the provided vector. (= vector normalization)
Public operatorStatic memberMultiply(Double, Vector)
Perform scalar multiplication on a vector (= scale a vector). If the scalar value is bigger than 1, it will change the magnitude of the vector (make it longer). If the scalar value is -1, it will reverse the direction of the vector but not change its magnitude If the scalar value is lesser than -1, it will reverse the direction and change the magnitude of the vector (make it longer).
Public operatorStatic memberMultiply(Vector, Vector)
Performs the vector cross product operation.
Public operatorStatic memberMultiply(Vector, Double)
Perform scalar multiplication on a vector (= scale a vector). If the scalar value is bigger than 1, it will change the magnitude of the vector (make it longer). If the scalar value is -1, it will reverse the direction of the vector but not change its magnitude If the scalar value is lesser than -1, it will reverse the direction and change the magnitude of the vector (make it longer).
Public operatorStatic memberOnesComplement
Calculate the magnitude (= size) of the provided vector
Public operatorStatic memberSubtraction
Subtract 2 vectors from each other, resulting in a new vector
Public operatorStatic memberUnaryNegation
Negate a vector, reversing its direction
Top
See Also