Table of Contents

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

origin GeoPoint2

Where the origin lands.

xAxis GeoVector2

Which way the X axis points; its length does not matter.

Returns

GeoTransform2

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.