Click or drag to resize

VectorMultiply Operator (Vector, Double)

[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
C#
public static Vector operator *(
	Vector vectorToScale,
	double scalar
)

Parameters

vectorToScale
Type: Infrastructure.GeometryVector
The vector to scale
scalar
Type: SystemDouble
The scalar value to scale the vector with

Return Value

Type: Vector
A new vector which is the scaled version of the provided vector
See Also