Enhanced C#
Language of your choice: library documentation
Properties | List of all members
Loyc.Geometry.IPointBase< T > Interface Template Reference

This interface exists to work around a limitation of C#; use IPoint<T> instead. More...


Source file:
Inheritance diagram for Loyc.Geometry.IPointBase< T >:
Loyc.Geometry.IPointReader< T > Loyc.Geometry.IPoint< T > Loyc.Geometry.IPoint3Base< T > Loyc.Geometry.IPoint3< T >

Remarks

This interface exists to work around a limitation of C#; use IPoint<T> instead.

C# cannot combine a getter property and a setter property from two interfaces, so this interface cannot inherit its getters from IPointReader<T>. The workaround is to define another getter in the read-write interface for each getter in the read-only interface. As far as the CLR is concerned, the two getters are unrelated, but you won't notice that unless you need to explicitly implement this interface.

Properties

new T X [get, set]
 Horizontal coordinate of a point or vector. More...
 
new T Y [get, set]
 Vertical coordinate of a point or vector. More...
 
- Properties inherited from Loyc.Geometry.IPointReader< T >
X [get]
 
Y [get]
 

Property Documentation

◆ X

new T Loyc.Geometry.IPointBase< T >.X
getset

Horizontal coordinate of a point or vector.

In geographic points, X represents the longitude.

◆ Y

new T Loyc.Geometry.IPointBase< T >.Y
getset

Vertical coordinate of a point or vector.

In 3D spaces, Y is sometimes used as a depth coordinate instead. In geographic points, Y represents the latitude.