2024 Class
Changes 0
C

XYZ

Description:
Object representing coordinates in 3-dimensional space.
Remarks:
Usually this means a point or a vector in 3-dimensional space, depending on the actual use.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.XYZ
public class XYZ
Name Return Type Description
C XYZ() None Creates a default XYZ with the values (0, 0, 0).
C XYZ(Double, Double, Double) None Creates an XYZ with the supplied coordinates.
Name Return Type Description
M op_Addition(XYZ, XYZ) XYZ Adds the two specified vectors and returns the result.
M Add(XYZ) XYZ Adds the specified vector to this vector and returns the result.
M AngleOnPlaneTo(XYZ, XYZ) double Returns the angle between this vector and the specified vector projected to the specified plane.
M AngleTo(XYZ) double Returns the angle between this vector and the specified vector.
M CrossProduct(XYZ) XYZ The cross product of this vector and the specified vector.
M DistanceTo(XYZ) double Returns the distance from this point to the specified point.
M Divide(Double) The divided vector. Divides this vector by the specified value and returns the result.
M op_Division(XYZ, Double) The divided vector. Divides the specified vector by the specified value.
M DotProduct(XYZ) double The dot product of this vector and the specified vector.
M GetLength() double Gets the length of this vector.
M IsAlmostEqualTo(XYZ) bool Determines whether this vector and the specified vector are the same within the tolerance (1.0e-09).
M IsAlmostEqualTo(XYZ, Double) bool Determines whether 2 vectors are the same within the given tolerance.
M IsUnitLength() bool The boolean value that indicates whether this vector is of unit length.
M IsWithinLengthLimits(XYZ) bool Validates that the input point is within Revit design limits.
M IsZeroLength() bool The boolean value that indicates whether this vector is a zero vector.
M Multiply(Double) The multiplied vector. Multiplies this vector by the specified value and returns the result.
M op_Multiply(Double, XYZ) The multiplied vector. Multiplies the specified number and the specified vector.
M op_Multiply(XYZ, Double) The multiplied vector. Multiplies the specified number and the specified vector.
M Negate() XYZ Negates this vector.
M Normalize() XYZ Returns a new XYZ whose coordinates are the normalized values from this vector.
M op_Subtraction(XYZ, XYZ) XYZ Subtracts the two specified vectors and returns the result.
M Subtract(XYZ) XYZ Subtracts the specified vector from this vector and returns the result.
M ToString() string Gets formatted string showing (X, Y, Z) with values formatted to 9 decimal places.
M TripleProduct(XYZ, XYZ) double The triple product of this vector and the two specified vectors.
M op_UnaryNegation(XYZ) XYZ Negates the specified vector and returns the result.
Name Return Type Description
P BasisX XYZ The basis of the X axis.
P BasisY XYZ The basis of the Y axis.
P BasisZ XYZ The basis of the Z axis.
P Item double Indexed access to coordinates.
P X double Gets the first coordinate.
P Y double Gets the second coordinate.
P Zero XYZ The coordinate origin or zero vector.
P Z double Gets the third coordinate.