Coordinate Class |
[This is preliminary documentation and is subject to change.]
Namespace: ModelExchanger.AnalysisDataModel.Subtypes
public sealed class Coordinate : ICoordinate, IEquatable<Coordinate>
The Coordinate type exposes the following members.
Name | Description | |
---|---|---|
Coordinate |
Create a coordinate with given X-, Y- and Z- values
|
Name | Description | |
---|---|---|
Name |
The name of the coordinate
| |
X |
The X-coordinate
| |
Y |
The Y-coordinate
| |
Z |
The Z-coordinate
|
Name | Description | |
---|---|---|
Equals(Coordinate) | Indicates whether the current object is equal to another object of the same type. | |
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) |
Name | Description | |
---|---|---|
CrossProduct |
Calculates the cross product between 2 coordinates (= vectors)
(Defined by ICoordinateExtensions.) | |
Magnitude |
Calculates the magnitude (size or length) of a coordinate (= vector), between origin (0,0,0) and the coordinate itself.
(Defined by ICoordinateExtensions.) | |
ToGeometryPoint |
Convert an ICoordinate to a geometry point
(Defined by ICoordinateExtensions.) |
private IReadOnlyList<Coordinate> CreateCoordinates() => new[] { new Coordinate("C1", Length.FromMeters(-8), Length.FromMeters(0), Length.FromMeters(-4)), new Coordinate("C2", Length.FromMeters(-4), Length.FromMeters(0), Length.FromMeters(-4)), new Coordinate("C3", Length.FromMeters(-4), Length.FromMeters(0), Length.FromMeters(0)), new Coordinate("C4", Length.FromMeters(-8), Length.FromMeters(0), Length.FromMeters(0)), new Coordinate("C5", Length.FromMeters(-8), Length.FromMeters(4), Length.FromMeters(-4)), new Coordinate("C6", Length.FromMeters(-4), Length.FromMeters(4), Length.FromMeters(-4)), new Coordinate("C7", Length.FromMeters(-4), Length.FromMeters(4), Length.FromMeters(0)), new Coordinate("C8", Length.FromMeters(-8), Length.FromMeters(4), Length.FromMeters(0)), new Coordinate("C9", Length.FromMeters(-7), Length.FromMeters(1), Length.FromMeters(-4)), new Coordinate("C10", Length.FromMeters(-5), Length.FromMeters(1), Length.FromMeters(-4)), new Coordinate("C11", Length.FromMeters(-5), Length.FromMeters(3), Length.FromMeters(-4)), new Coordinate("C12", Length.FromMeters(-7), Length.FromMeters(3), Length.FromMeters(-4)), new Coordinate("C13", Length.FromMeters(-7), Length.FromMeters(1), Length.FromMeters(0)), new Coordinate("C14", Length.FromMeters(-5), Length.FromMeters(1), Length.FromMeters(0)), new Coordinate("C15", Length.FromMeters(-5), Length.FromMeters(3), Length.FromMeters(0)), new Coordinate("C16", Length.FromMeters(-7), Length.FromMeters(3), Length.FromMeters(0)), };