Multiply Operator (Double, XYZ)


Multiplies the specified number and the specified vector.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public static XYZ operator *(
	double value,
	XYZ right
)
Visual Basic
Public Shared Operator * ( _
	value As Double, _
	right As XYZ _
) As XYZ
Visual C++
public:
static XYZ^ operator *(
	double value, 
	XYZ^ right
)

Parameters

value
Type: System Double
The value to multiply with the specified vector.
right
Type: Autodesk.Revit.DB XYZ
The vector to multiply with the value.

Return Value

The multiplied vector.

Remarks

The multiplied vector is obtained by multiplying each coordinate of the specified vector by the specified value.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException Thrown when right is a null reference ( Nothing in Visual Basic) .
Autodesk.Revit.Exceptions ArgumentException Thrown when the specified value is an infinite number.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →