You are here: Start » AVL.NET » AVL.PointAlongArc
Transforms a point to a coordinate system in which the 'axis' arc is vertical or horizontal.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void PointAlongArc ( AvlNet.Point2D inPoint, AvlNet.Arc2D inAxis, AvlNet.Axis inAxisType, float inAxisCoordinate, bool inInverse, out AvlNet.Point2D outPoint )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoint | AvlNet.Point2D | Input point. | |||
inAxis | AvlNet.Arc2D | Input axis arc. | |||
inAxisType | AvlNet.Axis | Y | Type of axis the input axis arc is parallel to. Default value: Y. | ||
inAxisCoordinate | float | 0.0f | Coordinate of the axis arc. Default value: 0.0f. | ||
inInverse | bool | True | Switches to the inverse operation. Default value: True. | ||
outPoint | AvlNet.Point2D | Transformed point. |
Description
This operation transforms a point - inPoint - between two coordinate systems: the one linked with 'axis' arc inAxis and the original one. Direction of this conversion is based on inInverse value:
- if it is true, inPoint is converted to original coordinate system
- if it is false, inPoint is converted from original coordinate system
Coordinate system linked with inAxis is some transformation of the original one, satisfying these conditions:
- 'axis' arc is represented as a straight line
- 'axis' arc is horizontal if inAxisType is set to X or vertical if inAxisType is set to Y
- if inAxisType is set to X, the Y coordinate of 'axis' arc is equal to inAxisCoordinate. If inAxisType is set to Y, the X coordinate of 'axis' arc is equal to inAxisCoordinate