Struct GeoCoordinateSystem2
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
A local coordinate system in the plane: an origin and two orthonormal axes, the counterpart of GeoCoordinateSystem3 in space.
It is the place a drawing sits rather than something done to a drawing. GeoTransform2 can say the same thing, and ToTransform() hands it over in that form, but a transformation may also scale, mirror or shear, and reading one backwards means inverting a matrix. A frame is rigid by construction, and reading it backwards is turning the axes round, which costs nothing and loses nothing.
public readonly struct GeoCoordinateSystem2 : IEquatable<GeoCoordinateSystem2>
- Implements
- Inherited Members
Constructors
- GeoCoordinateSystem2(GeoPoint2, GeoVector2)
Initializes a system at an origin, with its X axis along a direction.
- GeoCoordinateSystem2(GeoPoint2, double)
Initializes a system at an origin, turned by an angle.
Properties
- AngleRad
Gets how far the X axis is turned from the drawing's own X axis, counter-clockwise.
- Global
Gets the system the whole drawing is held in: the origin, with the axes along X and Y.
- IsValid
Gets whether this is a shape a constructor could have made: the origin is a valid point and the axes of unit length and square to each other.
- Origin
Gets where the origin of the system sits.
- XAxis
Gets the X axis of the system, of unit length.
- YAxis
Gets the Y axis of the system, of unit length and a quarter turn counter-clockwise from the X axis.
Methods
- Clone()
Creates a copy of this system.
- Equals(GeoCoordinateSystem2)
Determines whether another system holds exactly the same origin and axes.
- Equals(object)
Determines whether the specified object is an equal system.
- GetHashCode()
Returns the hash code for this system.
- IsEqualTo(GeoCoordinateSystem2)
Determines whether another system sits in the same place, within the default tolerance.
- IsEqualTo(GeoCoordinateSystem2, Tolerance)
Determines whether another system sits in the same place, within a tolerance.
- ToGlobal(GeoPoint2)
Gets a point of this system put back into the drawing.
- ToGlobal(GeoVector2)
Gets a vector of this system put back into the drawing.
- ToLocal(GeoPoint2)
Gets a point of the drawing read in this system.
- ToLocal(GeoVector2)
Gets a vector of the drawing read in this system.
- ToString()
Describes the system.
- ToTransform()
Gets the system as the transformation that places geometry built about the origin.
- TransformBy(GeoTransform2)
Gets this system under a transformation.
Operators
- operator ==(GeoCoordinateSystem2, GeoCoordinateSystem2)
Determines whether two systems hold exactly the same values.
- operator !=(GeoCoordinateSystem2, GeoCoordinateSystem2)
Determines whether two systems hold different values.