Vector Class |
[This is preliminary documentation and is subject to change.]
Namespace: Infrastructure.Geometry
public sealed class Vector : IEquatable<Vector>
The Vector type exposes the following members.
Name | Description | |
---|---|---|
![]() | Vector(Double, Double, Double) | |
![]() | Vector(Length, Length, Length) | |
![]() | Vector(NullableLength, NullableLength, NullableLength) |
Name | Description | |
---|---|---|
![]() | Equals(Object) |
Checks if this instance is equal to the provided object
(Overrides ObjectEquals(Object).) |
![]() | Equals(Vector) |
Checks if this instance is equal to the provided instance
|
![]() | GetHashCode |
Calculates the hashcode of this instance.
(Overrides ObjectGetHashCode.) |
![]() | Rotate | |
![]() | ToString |
Returns a user-friendly string representation of this vector in 3D space (X, Y, Z)
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
![]() ![]() | Addition |
Add 2 vectors together, resulting in a new vector
|
![]() ![]() | BitwiseOr |
Performs the vector dot product operation
|
![]() ![]() | Division |
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)
|
![]() ![]() | Equality |
Checks if both vectors are equal
|
![]() ![]() | (Point to Vector) |
Convert a Point to a vector
|
![]() ![]() | (Vector3D to Vector) | |
![]() ![]() | Inequality |
Checks if both vectors are not equal
|
![]() ![]() | LogicalNot |
Create a unit vector from the provided vector. (= vector normalization)
|
![]() ![]() | Multiply(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).
|
![]() ![]() | Multiply(Vector, Vector) |
Performs the vector cross product operation.
|
![]() ![]() | Multiply(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).
|
![]() ![]() | OnesComplement |
Calculate the magnitude (= size) of the provided vector
|
![]() ![]() | Subtraction |
Subtract 2 vectors from each other, resulting in a new vector
|
![]() ![]() | UnaryNegation |
Negate a vector, reversing its direction
|