XYZ
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.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.XYZ
System.Object
Autodesk.Revit.DB.XYZ
public class XYZ
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| XYZ() | None | Creates a default XYZ with the values (0, 0, 0). | |
| XYZ(Double, Double, Double) | None | Creates an XYZ with the supplied coordinates. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Add(XYZ) | XYZ | Adds the specified vector to this vector and returns the result. | |
| AngleOnPlaneTo(XYZ, XYZ) | Double | Returns the angle between this vector and the specified vector projected to the specified plane. | |
| AngleTo(XYZ) | Double | Returns the angle between this vector and the specified vector. | |
| CrossProduct(XYZ) | XYZ | The cross product of this vector and the specified vector. | |
| DistanceTo(XYZ) | Double | Returns the distance from this point to the specified point. | |
| Divide(Double) | XYZ | Divides this vector by the specified value and returns the result. | |
| DotProduct(XYZ) | Double | The dot product of this vector and the specified vector. | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetLength() | Double | Gets the length of this vector. | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| IsAlmostEqualTo(XYZ) | Boolean | Determines whether this vector and the specified vector are the same within the tolerance (1.0e-09). | |
| IsAlmostEqualTo(XYZ, Double) | Boolean | Determines whether 2 vectors are the same within the given tolerance. | |
| IsUnitLength() | Boolean | The boolean value that indicates whether this vector is of unit length. | |
| IsWithinLengthLimits(XYZ) | Boolean | Validates that the input point is within Revit design limits. | |
| IsZeroLength() | Boolean | The boolean value that indicates whether this vector is a zero vector. | |
| Multiply(Double) | XYZ | Multiplies this vector by the specified value and returns the result. | |
| Negate() | XYZ | Negates this vector. | |
| Normalize() | XYZ | Returns a new XYZ whose coordinates are the normalized values from this vector. | |
| Subtract(XYZ) | XYZ | Subtracts the specified vector from this vector and returns the result. | |
| ToString() | String | Gets formatted string showing (X, Y, Z) with values formatted to 9 decimal places. (Overrides Object . ToString () ) | |
| TripleProduct(XYZ, XYZ) | Double | The triple product of this vector and the two specified vectors. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Addition(XYZ, XYZ) | XYZ | Adds the two specified vectors and returns the result. | |
| Division(XYZ, Double) | XYZ | Divides the specified vector by the specified value. | |
| Multiply(Double, XYZ) | XYZ | Multiplies the specified number and the specified vector. | |
| Multiply(XYZ, Double) | XYZ | Multiplies the specified number and the specified vector. | |
| Subtraction(XYZ, XYZ) | XYZ | Subtracts the two specified vectors and returns the result. | |
| UnaryNegation(XYZ) | XYZ | Negates the specified vector and returns the result. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| BasisX | XYZ | The basis of the X axis. | |
| BasisY | XYZ | The basis of the Y axis. | |
| BasisZ | XYZ | The basis of the Z axis. | |
| Item | double | Indexed access to coordinates. | |
| X | double | Gets the first coordinate. | |
| Y | double | Gets the second coordinate. | |
| Z | double | Gets the third coordinate. | |
| Zero | XYZ | The coordinate origin or zero vector. |