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.
public class XYZ
| Name | Return Type | Description |
|---|---|---|
| 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 |
|---|---|---|
| op_Addition(XYZ, XYZ) | XYZ | Adds the two specified vectors and returns the result. |
| 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) | The divided vector. | Divides this vector by the specified value and returns the result. |
| op_Division(XYZ, Double) | The divided vector. | Divides the specified vector by the specified value. |
| DotProduct(XYZ) | double | The dot product of this vector and the specified vector. |
| GetLength() | double | Gets the length of this vector. |
| IsAlmostEqualTo(XYZ) | bool | Determines whether this vector and the specified vector are the same within the tolerance (1.0e-09). |
| IsAlmostEqualTo(XYZ, Double) | bool | Determines whether 2 vectors are the same within the given tolerance. |
| IsUnitLength() | bool | The boolean value that indicates whether this vector is of unit length. |
| IsWithinLengthLimits(XYZ) | bool | Validates that the input point is within Revit design limits. |
| IsZeroLength() | bool | The boolean value that indicates whether this vector is a zero vector. |
| Multiply(Double) | The multiplied vector. | Multiplies this vector by the specified value and returns the result. |
| op_Multiply(Double, XYZ) | The multiplied vector. | Multiplies the specified number and the specified vector. |
| op_Multiply(XYZ, Double) | The multiplied vector. | Multiplies the specified number and the specified vector. |
| Negate() | XYZ | Negates this vector. |
| Normalize() | XYZ | Returns a new XYZ whose coordinates are the normalized values from this vector. |
| op_Subtraction(XYZ, XYZ) | XYZ | Subtracts the two specified vectors and returns the result. |
| 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. |
| TripleProduct(XYZ, XYZ) | double | The triple product of this vector and the two specified vectors. |
| op_UnaryNegation(XYZ) | XYZ | Negates the specified vector and returns the result. |
| Name | Return Type | Description |
|---|---|---|
| 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. |
| Zero | XYZ | The coordinate origin or zero vector. |
| Z | double | Gets the third coordinate. |