Method FromFrame
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
FromFrame(GeoPoint2, GeoVector2)
Creates the transformation that takes the world frame to a local frame: the origin to
origin and the X axis along xAxis.
public static GeoTransform2 FromFrame(GeoPoint2 origin, GeoVector2 xAxis)
Parameters
originGeoPoint2Where the origin lands.
xAxisGeoVector2Which way the X axis points; its length does not matter.
Returns
Remarks
This is what to use to place a drawing: build its geometry about the origin, then move the whole of it into place with one transformation. Its inverse reads a placed drawing back into local coordinates.
Exceptions
- InvalidOperationException
Thrown when the axis has no length.