Skip to content

Features

Vector2D - GetDirection

Computes the vector direction.

IN

Name Type Description
InVector2D Vector2D The input Vector2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float The computed angle in range 〔0,360〕 〔deg〕.
Error ErrorState Gets the execution error message

Vector2D - GetLength

Returns the vector length.

IN

Name Type Description
InVector2D Vector2D The input Vector2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float Vector length.
Error ErrorState Gets the execution error message

Vector2D - GetLength2

Returns the vector squared length.

IN

Name Type Description
InVector2D Vector2D The input Vector2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float Vector squared length.
Error ErrorState Gets the execution error message

Segment2D - GetBisector

Returns the segment bisector.

IN

Name Type Description
InSegment2D Segment2D The input Segment2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutLine2D Line2D Segment's bisector.
Error ErrorState Gets the execution error message

Segment2D - GetCenter

Returns the center of the segment.

IN

Name Type Description
InSegment2D Segment2D The input Segment2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D Segment's center.
Error ErrorState Gets the execution error message

Segment2D - GetLength

Returns the segment length.

IN

Name Type Description
InSegment2D Segment2D The input Segment2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float float Length.
Error ErrorState Gets the execution error message

Segment2D - GetLine

Computes the line containing the segment.

IN

Name Type Description
InSegment2D Segment2D The input Segment2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutLine2D Line2D The computed object.
Error ErrorState Gets the execution error message

Segment2D - GetNormalVector

Returns a unary vector with direction normal to the segment.

IN

Name Type Description
InSegment2D Segment2D The input Segment2D
InReverse Bool If true, the computed vector has the opposite direction.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutVector2D Vector2D Segment's normal vector.
Error ErrorState Gets the execution error message

Segment2D - GetOrientation

Returns the segment direction normalized to the provided range.

IN

Name Type Description
InSegment2D Segment2D The input Segment2D
InAngleRange Enum < AngleRange > Range in which the computed angle is contained.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float The computed angle.
Error ErrorState Gets the execution error message

Segment2D - GetVector

Returns the corresponding vector.

IN

Name Type Description
InSegment2D Segment2D The input Segment2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutVector2D Vector2D Segment's corresponding vector.
Error ErrorState Gets the execution error message

Ring2D - GetBoundingBox

Returns the box with minimum area that contains the entire ring.

IN

Name Type Description
InRing2D Ring2D The input Ring2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBox Box Ring's bounding box.
Error ErrorState Gets the execution error message

Rectangle2D - GetAnchoredPoint

Computes the rectangle points found at the provided anchor.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
InPointAnchor Enum < Anchor2D > Selects the rectangle point that must be returned.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D The computed point.
Error ErrorState Gets the execution error message

Rectangle2D - GetArea

Returns the rectangle area.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float Rectangle area.
Error ErrorState Gets the execution error message

Rectangle2D - GetBoundingBox

Returns the box with minimum area that contains the entire rectangle.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBox Box Rectangle's bounding box.
Error ErrorState Gets the execution error message

Rectangle2D - GetBoundingCircle

Returns the circle with minimum area that contains the entire rectangle.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutCircle2D Circle2D Rectangle's bounding circle.
Error ErrorState Gets the execution error message

Rectangle2D - GetCenter

Returns the rectangle center.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D Rectangle's center.
Error ErrorState Gets the execution error message

Rectangle2D - GetCorner

Returns a rectangle corner.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
InRectangleCorner Enum < RectangleCorner > Selects which corner must be returned.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D Requested corner.
Error ErrorState Gets the execution error message

Rectangle2D - GetCorners

Computes all the rectangle corners.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutTopLeft Point2D Computed top left corner.
OutTopRight Point2D Computed top right corner.
OutBottomRight Point2D Computed bottom right corner.
OutBottomLeft Point2D Computed bottom left corner.
Error ErrorState Gets the execution error message

Rectangle2D - GetPerimeter

Returns the rectangle perimeter.

IN

Name Type Description
InRectangle2D Rectangle2D The input Rectangle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float Rectangle perimeter.
Error ErrorState Gets the execution error message

Points - PointsBoundingBox

Computes the smallest box that contains all the provided points.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBox Box The computed box.
Error ErrorState Gets the execution error message

Points - PointsBoundingCircle

Computes the smaller circle that contains all the provided points.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutCircle2D Circle2D The computed circle.
Error ErrorState Gets the execution error message

Points - PointsBoundingRect_FromAngle

Computes the smallest rectangle that contains the provided points and has the provided orientation.

IN

Name Type Description
InPoints Point2DArray Input points.
InAngle Float Rectangle orientation.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutRectangle2D Rectangle2D The computed rectangle
Error ErrorState Gets the execution error message

Points - PointsBoundingRect_FromOrientation

Computes the smallest rectangle that contains the provided points.

IN

Name Type Description
InPoints Point2DArray Input points.
InRectangleOrientation Enum < RectangleOrientation > Orientation of the output rectangle
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutRectangle2D Rectangle2D The computed rectangle.
Error ErrorState Gets the execution error message

Points - PointsCaliperDiameter

Computes the longest and shortest segments connecting two points of the provided array.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoints Point2DArray The modified Core.Data.Types.Point2DArray
Error ErrorState Gets the execution error message

Points - PointsConcaveHull

Computes the concave hull of the provided points array.

IN

Name Type Description
InPoints Point2DArray Input points
InNearestNeighbors Int Number of nearest-neighbors to search for at each step. Higher values yields a smoother polygon.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPath Path The computed concave hull.
Error ErrorState Gets the execution error message

Points - PointsConvexHull

Computes the convex hull of the provided points array.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPath Path The computed convex hull.
Error ErrorState Gets the execution error message

Points - PointsDiameter

Computes the longest segment connecting two points of the provided array.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutSegment2D Segment2D The computed segment.
Error ErrorState Gets the execution error message

Points - PointsMassCenter

Computes the mass center of the points array.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D The computed mass center.
Error ErrorState Gets the execution error message

Line2D - GetNormalVector

Computes the vector normal to the line.

IN

Name Type Description
InLine2D Line2D The input Line2D
InReverse Bool If true, the computed vector is rotated by 180 degrees.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutVector2D Vector2D The computed vector.
Error ErrorState Gets the execution error message

Line2D - GetOrientation

Computes the line orientation.

IN

Name Type Description
InLine2D Line2D The input Line2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float The computed angle in range 〔0, 360〕 〔deg〕.
Error ErrorState Gets the execution error message

Line2D - GetPoint

Returns a point on the line with the provided coordinate. Note: If the line is vertical and the provided coordinate is on the X axis, the point's Y coordinate will be NaN. The same is true if the line is horizontal and the coordinate is on the Y axis.

IN

Name Type Description
InLine2D Line2D The input Line2D
InCoordinate Float Value of the fixed coordinate.
InAxis Enum < Axis > Axis of the provided coordinate.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D The computed point.
Error ErrorState Gets the execution error message

Ellipse2D - GetBoundingBox

Returns the box with minimum area that contains the entire ellipse.

IN

Name Type Description
InEllipse2D Ellipse2D The input Ellipse2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBox Box Ellipse's bounding box.
Error ErrorState Gets the execution error message

Ellipse2D - GetBoundingRect

Returns the rectangle with minimum area that contains the entire ellipse.

IN

Name Type Description
InEllipse2D Ellipse2D The input Ellipse2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutRectangle2D Rectangle2D Ellipse's bounding rectangle.
Error ErrorState Gets the execution error message

Circle2D - GetAnchoredPoint

Returns a circle characteristic point.

IN

Name Type Description
InCircle2D Circle2D The input Circle2D
InPointAnchor Enum < Anchor2D > Anchor of the returned point.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D The computed point.
Error ErrorState Gets the execution error message

Circle2D - GetArcSection

Returns an arc section from the circle using the provided angles.

IN

Name Type Description
InCircle2D Circle2D The input Circle2D
InStartAngle Float Input start angle.
InSweepAngle Float Input sweep angle.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutArc2D Arc2D Circle's arc section.
Error ErrorState Gets the execution error message

Circle2D - GetArea

Returns the circle area.

IN

Name Type Description
InCircle2D Circle2D The input Circle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float Circle's area.
Error ErrorState Gets the execution error message

Circle2D - GetBoundingBox

Returns the box with minimum area that contains the entire circle.

IN

Name Type Description
InCircle2D Circle2D The input Circle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutBox Box Circle's bounding box.
Error ErrorState Gets the execution error message

Circle2D - GetBoundingRect

Computes the rectangle with minium area that contains the entire circle.

IN

Name Type Description
InCircle2D Circle2D The input Circle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutRectangle2D Rectangle2D The computed rectangle.
Error ErrorState Gets the execution error message

Circle2D - GetPerimeter

Returns the circle perimeter.

IN

Name Type Description
InCircle2D Circle2D The input Circle2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float Circle's perimeter.
Error ErrorState Gets the execution error message

Circle2D - GetTangents

Returns the lines that are tangents to the Circle2D object.

IN

Name Type Description
InCircle2D Circle2D The input Circle2D
InPoint Point2D Point contained by the tangent lines.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutLine2D Line2DArray Array of Line2D objects. If empty, no tangent lines were found. If array size is 1, the point lies onto the circle perimeter.
Error ErrorState Gets the execution error message

Arc2D - GetCircle

Returns the circle containing the arc.

IN

Name Type Description
InArc2D Arc2D The input Arc2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutCircle2D Circle2D Circle containing the arc.
Error ErrorState Gets the execution error message

Arc2D - GetEndpoints

Returns both arc endpoints.

IN

Name Type Description
InArc2D Arc2D The input Arc2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint1 Point2D First arc endpoint.
OutPoint2 Point2D Second arc endpoint.
Error ErrorState Gets the execution error message

Arc2D - GetLength

Returns the arc length.

IN

Name Type Description
InArc2D Arc2D The input Arc2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutFloat Float Arc length.
Error ErrorState Gets the execution error message

Arc2D - GetMidpoint

Returns the arc midpoint.

IN

Name Type Description
InArc2D Arc2D The input Arc2D
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutPoint2D Point2D Arc midpoint.
Error ErrorState Gets the execution error message