Click or drag to resize

Coordinate Class

[This is preliminary documentation and is subject to change.]

Defines a coordinate with X-, Y- and Z- values
Inheritance Hierarchy
SystemObject
  ModelExchanger.AnalysisDataModel.SubtypesCoordinate

Namespace:  ModelExchanger.AnalysisDataModel.Subtypes
Assembly:  ModelExchanger.AnalysisDataModel (in ModelExchanger.AnalysisDataModel.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax
C#
public sealed class Coordinate : ICoordinate, 
	IEquatable<Coordinate>

The Coordinate type exposes the following members.

Constructors
  NameDescription
Public methodCoordinate
Create a coordinate with given X-, Y- and Z- values
Top
Properties
  NameDescription
Public propertyName
The name of the coordinate
Public propertyX
The X-coordinate
Public propertyY
The Y-coordinate
Public propertyZ
The Z-coordinate
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(Coordinate)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Top
Extension Methods
  NameDescription
Public Extension MethodCrossProduct
Calculates the cross product between 2 coordinates (= vectors)
(Defined by ICoordinateExtensions.)
Public Extension MethodMagnitude
Calculates the magnitude (size or length) of a coordinate (= vector), between origin (0,0,0) and the coordinate itself.
(Defined by ICoordinateExtensions.)
Public Extension MethodToGeometryPoint
Convert an ICoordinate to a geometry point
(Defined by ICoordinateExtensions.)
Top
Examples
Creating an instance
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)),
};
See Also