RVTDocs.com
Namespace: Autodesk.Revit.DB Class: XYZ

XYZ.UnaryNegation Operator

Description:
Negates the specified vector and returns the result.
Remarks:
The negated vector is obtained by changing the sign of each coordinate of the specified vector.
Syntax
public static XYZ operator -(
	XYZ source
)
Parameters
Parameter Type Description
source XYZ
Return Value
Type Description
XYZ The vector opposite to the specified vector.
Exceptions
Exception Condition
ArgumentNullException Thrown when source is.