2027 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 Inherited From
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 Inherited From
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) XYZ Divides this vector by the specified value and returns the result.
M DotProduct(XYZ) Double The dot product of this vector and the specified vector.
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetLength() Double Gets the length of this vector.
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M IsAlmostEqualTo(XYZ) Boolean Determines whether this vector and the specified vector are the same within the tolerance (1.0e-09).
M IsAlmostEqualTo(XYZ, Double) Boolean Determines whether 2 vectors are the same within the given tolerance.
M IsUnitLength() Boolean The boolean value that indicates whether this vector is of unit length.
M IsWithinLengthLimits(XYZ) Boolean Validates that the input point is within Revit design limits.
M IsZeroLength() Boolean The boolean value that indicates whether this vector is a zero vector.
M Multiply(Double) XYZ Multiplies this vector by the specified value and returns the result.
M Negate() XYZ Negates this vector.
M Normalize() XYZ Returns a new XYZ whose coordinates are the normalized values from this vector.
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. (Overrides Object . ToString () )
M TripleProduct(XYZ, XYZ) Double The triple product of this vector and the two specified vectors.
Name Return Type Description Inherited From
O Addition(XYZ, XYZ) XYZ Adds the two specified vectors and returns the result.
O Division(XYZ, Double) XYZ Divides the specified vector by the specified value.
O Multiply(Double, XYZ) XYZ Multiplies the specified number and the specified vector.
O Multiply(XYZ, Double) XYZ Multiplies the specified number and the specified vector.
O Subtraction(XYZ, XYZ) XYZ Subtracts the two specified vectors and returns the result.
O UnaryNegation(XYZ) XYZ Negates the specified vector and returns the result.
Name Return Type Description Inherited From
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 Z double Gets the third coordinate.
P Zero XYZ The coordinate origin or zero vector.