Namespace:
Autodesk.Revit.DB
XYZ
Class
Description:
Object representing coordinates in 3-dimensional space.
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.
Usually this means a point or a vector in 3-dimensional space, depending on the actual use.
XYZ Class Members:
Name | Description | Inherited From |
---|---|---|
XYZ() | Creates a default XYZ with the values (0, 0, 0). | |
XYZ(Double, Double, Double) | Creates an XYZ with the supplied coordinates. |
Name | Description | Inherited From |
---|---|---|
Add | Adds the specified vector to this vector and returns the result. | |
AngleOnPlaneTo | Returns the angle between this vector and the specified vector projected to the specified plane. | |
AngleTo | Returns the angle between this vector and the specified vector. | |
CrossProduct | The cross product of this vector and the specified vector. | |
DistanceTo | Returns the distance from this point to the specified point. | |
Divide | Divides this vector by the specified value and returns the result. | |
DotProduct | The dot product of this vector and the specified vector. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
GetHashCode | Serves as the default hash function. (Inherited from Object ) | Object |
GetLength | Gets the length of this vector. | |
GetType | Gets the Type of the current instance. (Inherited from Object ) | Object |
IsAlmostEqualTo(XYZ) | Determines whether this vector and the specified vector are the same within the tolerance (1.0e-09). | |
IsAlmostEqualTo(XYZ, Double) | Determines whether 2 vectors are the same within the given tolerance. | |
IsUnitLength | The boolean value that indicates whether this vector is of unit length. | |
IsWithinLengthLimits | Validates that the input point is within Revit design limits. | |
IsZeroLength | The boolean value that indicates whether this vector is a zero vector. | |
Multiply | Multiplies this vector by the specified value and returns the result. | |
Negate | Negates this vector. | |
Normalize | Returns a new XYZ whose coordinates are the normalized values from this vector. | |
Subtract | Subtracts the specified vector from this vector and returns the result. | |
ToString | Gets formatted string showing (X, Y, Z) with values formatted to 9 decimal places. (Overrides Object . ToString () ) | |
TripleProduct | The triple product of this vector and the two specified vectors. |
Name | Description | Inherited From |
---|---|---|
Addition(XYZ, XYZ) | Adds the two specified vectors and returns the result. | |
Division(XYZ, Double) | Divides the specified vector by the specified value. | |
Multiply(Double, XYZ) | Multiplies the specified number and the specified vector. | |
Multiply(XYZ, Double) | Multiplies the specified number and the specified vector. | |
Subtraction(XYZ, XYZ) | Subtracts the two specified vectors and returns the result. | |
UnaryNegation(XYZ) | Negates the specified vector and returns the result. |