Struct Frame2D
Represents a geometric 2D frame.
Inherited Members
Namespace: TopSolid.Kernel.Automating
Assembly: TopSolid.Kernel.Automating.dll
Syntax
[DataContract]
[AvailableSinceVersion(7, 6, 0, 0)]
public struct Frame2D
Remarks
This structure is available since v7.6.
Constructors
| Name | Description |
|---|---|
| Frame2D(Point2D, Direction2D, Direction2D) | Initializes a new instance of the Frame2D structure with a specified origin and directions. |
Fields
| Name | Description |
|---|---|
| OXY | (O,+X,+Y) absolute frame. |
| Origin | Frame origin. |
| XDirection | Frame X direction. |
| YDirection | Frame Y direction, orthogonal to |
Methods
| Name | Description |
|---|---|
| ToAbsolute(Axis2D) | Converts an axis with coordinates expressed in this frame into the same axis with coordinates expressed in the absolute frame. |
| ToAbsolute(Direction2D) | Converts a direction with coordinates expressed in this frame into the same direction with coordinates expressed in the absolute frame. |
| ToAbsolute(Frame2D) | Converts a frame with coordinates expressed in this frame into the same frame with coordinates expressed in the absolute frame. |
| ToAbsolute(Point2D) | Converts a point with coordinates expressed in this frame into the same point with coordinates expressed in the absolute frame. |
| ToAbsolute(Vector2D) | Converts a vector with coordinates expressed in this frame into the same vector with coordinates expressed in the absolute frame. |
| ToRelative(Axis2D) | Converts an axis with coordinates expressed in the absolute frame into the same axis with coordinates expressed in this frame. |
| ToRelative(Direction2D) | Converts a direction with coordinates expressed in the absolute frame into the same direction with coordinates expressed in this frame. |
| ToRelative(Frame2D) | Converts a frame with coordinates expressed in the absolute frame into the same frame with coordinates expressed in this frame. |
| ToRelative(Point2D) | Converts a point with coordinates expressed in the absolute frame into the same point with coordinates expressed in this frame. |
| ToRelative(Vector2D) | Converts a vector with coordinates expressed in the absolute frame into the same vector with coordinates expressed in this frame. |