VectorMultiply Operator (Double, Vector) |
[This is preliminary documentation and is subject to change.]
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).
Namespace:
Infrastructure.Geometry
Assembly:
Infrastructure.Geometry (in Infrastructure.Geometry.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax public static Vector operator *(
double scalar,
Vector vectorToScale
)
Parameters
- scalar
- Type: SystemDouble
The scalar value to scale the vector with - vectorToScale
- Type: Infrastructure.GeometryVector
The vector to scale
Return Value
Type:
VectorA new vector which is the scaled version of the provided vector
See Also