|
oevislib_net
0.14.3.0
|
Functions | |
| static float | oevislib_net.Geometry.AngleMetrics.RotateAngle (float inAngle, float inRotation, AngleRange inAngleRange, bool inInverse) |
| Computes the sum of two angles. | |
| static float | oevislib_net.Geometry.AngleMetrics.RotateAngle (float inAngle, float inTargetAngle, float inRotation, AngleRange inAngleRange, bool inInverse) |
| Rotates an angle towards a target angle, in the direction of minimum rotation. | |
Arc2D Spatial Transforms | |
| |
| Arc2D | oevislib_net.Geometry.Arc2D.Reverse () |
| Returns an object with equal center and radius, but with opposite arc direction. | |
| Arc2D | oevislib_net.Geometry.Arc2D.Resize (float inDelta) |
| Adds the provided length to the arc radius. | |
| Arc2D | oevislib_net.Geometry.Arc2D.Translate (Vector2D inDelta, bool inInverse) |
| Translates the arc using the provided vector. | |
| Arc2D | oevislib_net.Geometry.Arc2D.Rotate (float inAngle, Optional< Point2D > inCenter=null, bool inInverse=false) |
| Rotates the arc using the provided angle. | |
| Arc2D | oevislib_net.Geometry.Arc2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the arc to a new coordinate system. | |
| Arc2D | oevislib_net.Geometry.Arc2D.Rescale (float inScale=1.0f, Optional< Point2D > inReferencePoint=null, bool inInverse=false) |
| Rescales the arc using a scale factor. | |
Circle2D Spatial Transforms | |
| |
| Circle2D | oevislib_net.Geometry.Circle2D.Translate (Vector2D inDelta, bool inInverse) |
| Translates the circle using the provided vector. | |
| Circle2D | oevislib_net.Geometry.Circle2D.Rotate (float inAngle, Point2D inCenter, bool inInverse=false) |
| Rotates the circle around a rotation center. | |
| Circle2D | oevislib_net.Geometry.Circle2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the circle to a new coordinate system. | |
| Circle2D | oevislib_net.Geometry.Circle2D.Rescale (float inScale=1.0f, Optional< Point2D > inReferencePoint=null, bool inInverse=false) |
| Rescales the circle using the provided scale factor. | |
| Circle2D | oevislib_net.Geometry.Circle2D.Resize (float inRadiusDelta) |
| Adds a value to the circle radius. | |
Ellipse2D Spatial Transforms | |
| |
| Ellipse2D | oevislib_net.Geometry.Ellipse2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the ellipse to a new coordinate system. | |
Line2D Spatial Transforms | |
| |
| Line2D | oevislib_net.Geometry.Line2D.Translate (Vector2D inDelta, TranslateAlignment inDeltaAlignment, bool inInverse) |
| Translates the line using the provided vector. | |
| Line2D | oevislib_net.Geometry.Line2D.Rotate (float inAngle, Point2D inCenter, bool inInverse) |
| Rotates the line around a center point. | |
| Conditional< Segment2D > | oevislib_net.Geometry.Line2D.Trim (Box inBox) |
| Trims the line so that it is entirely contained in a box. | |
| Conditional< Segment2D > | oevislib_net.Geometry.Line2D.Trim (Rectangle2D inRectangle) |
| Trims the line so that it is entirely contained in a rectangle. | |
| Line2D | oevislib_net.Geometry.Line2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the line to a new coordinate system. | |
| Line2D | oevislib_net.Geometry.Line2D.Rescale (float inScale, Point2D inReferencePoint, bool inInverse) |
| Rescales the line using a scale factor. | |
Point2D Spatial Transforms | |
| |
| Point2D | oevislib_net.Geometry.Point2D.Translate (Vector2D inDelta, bool inInverse) |
| Translates the point coordinates using the provided vector. | |
| Point2D | oevislib_net.Geometry.Point2D.Translate (Point2D inTargetPoint, float inDistance, bool inInverse) |
| Translates the point towards a target point. | |
| Point2D | oevislib_net.Geometry.Point2D.Translate (float inDirection, float inDistance, bool inInverse) |
| Translates the point along the provided direction. | |
| Point2D | oevislib_net.Geometry.Point2D.Rotate (float inAngle, Point2D inCenter, bool inInverse) |
| Rotates the point coordinates clockwise. | |
| Point2D | oevislib_net.Geometry.Point2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the point to a new coordinate system. | |
| Point2D | oevislib_net.Geometry.Point2D.Rescale (float inScale, Point2D inReferencePoint, bool inInverse) |
| Rescales the point distance with respect to a reference point. | |
| static void | oevislib_net.Geometry.Point2D.TranslatePoints (Array< Point2D > ioPoints, Vector2D inDelta, bool inInverse) |
| Translates all the points in the array. | |
| static void | oevislib_net.Geometry.Point2D.RotatePoints (Array< Point2D > ioPoints, float inAngle, Optional< Point2D > inCenter=null, bool inInverse=false) |
| Rotates clockwise all the points in the array. | |
| static void | oevislib_net.Geometry.Point2D.AlignPoints (Array< Point2D > ioPoints, UCS2D inAlignment, bool inInverse) |
| Aligns all the points in the array. | |
| static void | oevislib_net.Geometry.Point2D.RescalePoints (Array< Point2D > ioPoints, float inScale=1.0f, Optional< Point2D > inReferencePoint=null, bool inInverse=false) |
| Rescales all the points in the array with respect to a reference point. | |
| static Array< Point2D > | oevislib_net.Geometry.Point2D.TrimPoints (Array< Point2D > inPoints, Box inBox) |
| Filters the points that are contained in the provided box. | |
| static Array< Point2D > | oevislib_net.Geometry.Point2D.TrimPoints (Array< Point2D > inPoints, Region inRegion) |
| Filters the points that are contained in the provided region. | |
| static void | oevislib_net.Geometry.Point2D.SplitPoints (Array< Point2D > inPoints, Line2D inLine, Array< Point2D > outPointsPositive, Array< Point2D > outPointsNegative) |
| Divides the input points in two arrays, based on the position with respect to the provided line. | |
Rectangle2D Spatial Transforms | |
| |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.Translate (Vector2D inDelta, bool inInverse) |
| Translates the rectangle using the provided vector. | |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.Rotate (float inAngle, Optional< Point2D > inCenter=null, bool inInverse=false) |
| Rotates the rectangle around a point. | |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the rectangle to a new coordinate system. | |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.Rescale (float inScale=1.0f, Optional< Point2D > inReferencePoint=null, bool inInverse=false) |
| Rescales the rectangle using a scale factor. | |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.Resize (Anchor2D inAnchor, Optional< float > inNewWidth=null, Optional< float > inNewHeight=null) |
| Changes the dimensions of the rectangle, while keeping an anchor point fixed. | |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.Resize (Anchor2D inAnchor, float inWidthScale, float inHeightScale) |
| Changes the dimensions of the rectangle using a scaling factor, while keeping an anchor point fixed. | |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.ResizeRelative (Anchor2D inAnchor, float inWidthDelta, float inHeightDelta) |
| Changes the dimensions of the rectangle by adding a certain quantity to each dimension, while keeping an anchor point fixed. | |
| Rectangle2D | oevislib_net.Geometry.Rectangle2D.Inflate (float inMargin) |
| Increases rectangle dimension by some amount. | |
Ring2D Spatial Transforms | |
| |
| Ring2D | oevislib_net.Geometry.Ring2D.Align (UCS2D inRingAlignment) |
| Aligns the ring to a new coordinate system. | |
Segment2D Spatial Transforms | |
| |
| Segment2D | oevislib_net.Geometry.Segment2D.Translate (Vector2D inDelta, TranslateAlignment inDeltaAlignment, bool inInverse) |
| Translates the segment using the provided vector. | |
| Segment2D | oevislib_net.Geometry.Segment2D.Rotate (float inAngle, Optional< Point2D > inCenter=null, bool inInverse=false) |
| Rotates the segment around a center point. | |
| Conditional< Segment2D > | oevislib_net.Geometry.Segment2D.Trim (Box inBox) |
| Trims the segment so that it is entirely contained in a box. | |
| Conditional< Segment2D > | oevislib_net.Geometry.Segment2D.Trim (Rectangle2D inRectangle) |
| Trims the segment so that it is entirely contained in a rectangle. | |
| Conditional< Segment2D > | oevislib_net.Geometry.Segment2D.Trim (Circle2D inCircle) |
| Trims the segment so that it is entirely contained in a circle. | |
| Segment2D | oevislib_net.Geometry.Segment2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the segment to a new coordinate system. | |
| Segment2D | oevislib_net.Geometry.Segment2D.Resize (float inNewLength, float inAnchor) |
| Changes the length of the segment while keeping an anchor point fixed. | |
| Segment2D | oevislib_net.Geometry.Segment2D.ResizeRelative (float inDelta, float inAnchor) |
| Increases or decreases the length of the segment while keeping an anchor point fixed. | |
| Segment2D | oevislib_net.Geometry.Segment2D.Rescale (float inScale=1.0f, Optional< Point2D > inReferencePoint=null, bool inInverse=false) |
| Rescales the segment using a scaling factor. | |
| void | oevislib_net.Geometry.Segment2D.Reverse () |
| Swaps the segment endpoints. | |
| Array< Segment2D > | oevislib_net.Geometry.Segment2D.Split (int inCount) |
| Splits the segments in multiple ones, each with the same length. | |
UCS2D Spatial Transforms | |
| |
| UCS2D | oevislib_net.Geometry.UCS2D.Translate (Vector2D inDelta, bool inInverse) |
| Translates the coordinate system using the provided vector. | |
| UCS2D | oevislib_net.Geometry.UCS2D.Rotate (float inAngle, Optional< Point2D > inCenter=null, bool inInverse=false) |
| Rotates the coordinate system around a center point. | |
| UCS2D | oevislib_net.Geometry.UCS2D.Align (UCS2D inAlignment, bool inInverse) |
| Aligns the object to a new coordinate system. | |
| UCS2D | oevislib_net.Geometry.UCS2D.Invert () |
| Inverts the coordinate system. | |
Vector2D Spatial Transforms | |
| |
| Vector2D | oevislib_net.Geometry.Vector2D.Resize (float inNewLength) |
| Changes the length of the vector, keeping the direction fixed. | |
| Vector2D | oevislib_net.Geometry.Vector2D.ResizeRelative (float inDelta) |
| Increases or decreases the vector lengths by the provided amount. | |
| Vector2D | oevislib_net.Geometry.Vector2D.Rescale (float inScale, bool inInverse) |
| Rescales the vector using a scale factor. | |
| Vector2D | oevislib_net.Geometry.Vector2D.Rotate (float inAngle, bool inInverse) |
| Rotates the vector. | |
Aligns the arc to a new coordinate system.
| inAlignment | Input coordinate system. |
| inInverse | If true, the inverse operation is applied. |
Aligns the circle to a new coordinate system.
| inAlignment | Input coordinate system. |
| inInverse | If true, the opposite operation is applied. |
Aligns the ellipse to a new coordinate system.
| inAlignment | Input coordinate system. |
| inInverse | If true, the inverse transformation is applied. |
Aligns the line to a new coordinate system.
| inAlignment | New coordinate system. |
| inInverse | If true, the inverse transformation is applied. |
Aligns the point to a new coordinate system.
| inAlignment | New coordinate system. |
| inInverse | If true, the inverse transform is used. |
|
inline |
Aligns the rectangle to a new coordinate system.
| inAlignment | Input coordinate system. |
| inInverse | If true, the inverse transformation is applied. |
Aligns the ring to a new coordinate system.
| inRingAlignment | Input coordinate system. |
Aligns the segment to a new coordinate system.
| inAlignment | Input coordinate system. |
| inInverse | If true, the opposite transformation is applied. |
Aligns the object to a new coordinate system.
| inAlignment | New coordinate system. |
| inInverse | If true, the opposite transformation is applied. |
|
inlinestatic |
Aligns all the points in the array.
The operation is applied in-place.
| ioPoints | Input points. |
| inAlignment | New coordinate system. |
| inInverse | If true, the inverse transform is applied. |
|
inline |
Increases rectangle dimension by some amount.
| inMargin | Amount added to each side of the rectangle. |
|
inline |
Inverts the coordinate system.
|
inline |
Rescales the arc using a scale factor.
| inScale | Input scale factor. |
| inReferencePoint | Reference point used to rescale the distance of the arc center. If null, the arc center is not moved. |
| inInverse | If true, the inverse of the scale factor is used. |
|
inline |
Rescales the circle using the provided scale factor.
| inScale | Input scale factor. |
| inReferencePoint | Reference point used to rescale the distance of the circle center. If null, the circle center is not moved. |
| inInverse | If true, the inverse of the scale factor is considered. |
|
inline |
Rescales the line using a scale factor.
| inScale | Rescaling factor. |
| inReferencePoint | Point used to calculate the distance from the line. |
| inInverse | If true, the inverse of the rescaling factor is used. |
|
inline |
Rescales the point distance with respect to a reference point.
| inScale | Scale factor. |
| inReferencePoint | Input reference point. |
| inInverse | If true, the scale is inverted. |
|
inline |
Rescales the rectangle using a scale factor.
| inScale | Rescaling factor. |
| inReferencePoint | Reference point used to rescale distances. If Null, the rectangle center is used. |
| inInverse | If true, the inverse of the rescaling factor is used. |
|
inline |
Rescales the segment using a scaling factor.
| inScale | Input scaling factor. If negative, the segment will be inverted. |
| inReferencePoint | Reference point used to compute the distances that will be rescaled. If Null, the segment midpoint will be considered. |
| inInverse | If true, the inverse of the scaling factor will be used. |
|
inline |
Rescales the vector using a scale factor.
| inScale | Scaling factor. |
| inInverse | If true, the inverse of the scale factor is used. |
|
inlinestatic |
Rescales all the points in the array with respect to a reference point.
The operation is applied in-place.
| ioPoints | Input points. |
| inScale | Scale coefficient. |
| inReferencePoint | Reference point used to calculate distances. If Null, the mass center is used. |
| inInverse | If true, the scale coefficient is inverted. |
|
inline |
Adds the provided length to the arc radius.
| inDelta | Length added to the arc radius. |
|
inline |
Adds a value to the circle radius.
| inRadiusDelta | Quantity added to the radius. |
|
inline |
Changes the dimensions of the rectangle using a scaling factor, while keeping an anchor point fixed.
| inAnchor | Selects the point of the rectangle that will not change its coordinate. |
| inWidthScale | Scale factor for the rectangle width. |
| inHeightScale | Scale factor for the rectangle height. |
|
inline |
Changes the dimensions of the rectangle, while keeping an anchor point fixed.
| inAnchor | Selects the point of the rectangle that will not change its coordinate. |
| inNewWidth | New rectangle width. If Null, the width will not be changed. |
| inNewHeight | New rectangle height. If Null, the height will not be changed. |
|
inline |
Changes the length of the segment while keeping an anchor point fixed.
| inNewLength | New length of the segment. Range: [0, +inf). |
| inAnchor | Point in the original segment that will be maintained fixed. If equal to 0, the first point will be maintained fixed. If equal to 1, the second point will be maintained fixed. |
|
inline |
Changes the length of the vector, keeping the direction fixed.
| inNewLength | New vector length. Range: [0, +inf). |
|
inline |
Changes the dimensions of the rectangle by adding a certain quantity to each dimension, while keeping an anchor point fixed.
| inAnchor | Selects the point of the rectangle that will not change its coordinate. |
| inWidthDelta | Amount added to the rectangle width. |
| inHeightDelta | Amount added to the rectangle height. |
|
inline |
Increases or decreases the length of the segment while keeping an anchor point fixed.
| inDelta | Quantity that will be added to the segment length. |
| inAnchor | Point in the original segment that will be maintained fixed. If equal to 0, the first point will be maintained fixed. If equal to 1, the second point will be maintained fixed. |
|
inline |
Increases or decreases the vector lengths by the provided amount.
| inDelta | Quantity added to the vector length. |
|
inline |
Returns an object with equal center and radius, but with opposite arc direction.
|
inline |
Swaps the segment endpoints.
|
inline |
Rotates the arc using the provided angle.
| inAngle | Input rotation angle. |
| inCenter | Input rotation center. If null, the arc center is used. |
| inInverse | If true, the opposite angle is used. |
|
inline |
Rotates the circle around a rotation center.
| inAngle | Rotation angle. |
| inCenter | Rotation center. |
| inInverse | if true, the opposite rotation angle is used. |
|
inline |
Rotates the line around a center point.
| inAngle | Rotation angle. |
| inCenter | Rotation center. |
| inInverse | If true, the opposite rotation angle is used. |
|
inline |
Rotates the point coordinates clockwise.
| inAngle | Rotation angle. |
| inCenter | Rotation center. |
| inInverse | If true, the rotation is performed counter-clockwise. |
|
inline |
Rotates the rectangle around a point.
| inAngle | Rotation angle. |
| inCenter | Rotation center. If Null, the rectangle center is used. |
| inInverse | If true, the opposite rotation angle is used. |
|
inline |
Rotates the segment around a center point.
| inAngle | Rotation angle. |
| inCenter | Rotation center. If Null, the segment midpoint is used. |
| inInverse | If true, the opposite rotation angle is considered. |
|
inline |
Rotates the coordinate system around a center point.
| inAngle | Rotation angle. |
| inCenter | Rotation center. If Null, the coordinate system origin is used. |
| inInverse | If true, the opposite rotation angle is used. |
|
inline |
Rotates the vector.
| inAngle | Rotation angle. |
| inInverse | If true, the opposite rotation angle is used. |
|
inlinestatic |
Computes the sum of two angles.
| inAngle | Input angle [deg]. |
| inRotation | Rotation angle [deg]. |
| inAngleRange | Range out the output angle. |
| inInverse | If true, the second angle is subtracted from the first. |
|
inlinestatic |
Rotates an angle towards a target angle, in the direction of minimum rotation.
| inAngle | Input angle [deg]. |
| inTargetAngle | Angle used to determine the rotation direction [deg]. |
| inRotation | Rotation angle [deg]. |
| inAngleRange | Range out the output angle. |
| inInverse | If true, the angle is rotated in the opposite direction. |
|
inlinestatic |
Rotates clockwise all the points in the array.
The operation is applied in-place.
| ioPoints | Input points. |
| inAngle | Input angle [deg]. |
| inCenter | Rotation center. If Null, the mass center is used. |
| inInverse | If true, rotation is applied counterclockwise. |
|
inline |
Splits the segments in multiple ones, each with the same length.
| inCount | The number of resulting segments. Range: [1, +inf). |
|
inlinestatic |
Divides the input points in two arrays, based on the position with respect to the provided line.
| inPoints | Input points. |
| inLine | Reference line. |
| outPointsPositive | Array of points with positive distance from the reference line. |
| outPointsNegative | Array of points with negative distance from the reference line. |
Translates the arc using the provided vector.
| inDelta | Input vector used for translations. |
| inInverse | If true, the vector with the opposite direction is used. |
Translates the circle using the provided vector.
| inDelta | Input vector used for translation. |
| inInverse | If true, the vector with the opposite direction is used. |
|
inline |
Translates the line using the provided vector.
| inDelta | Translation vector. |
| inDeltaAlignment | Coordinate system used for translation. |
| inInverse | If true, the vector with the opposite direction is used. |
|
inline |
Translates the point along the provided direction.
| inDirection | Direction of translation. |
| inDistance | Distance of translation. |
| inInverse | If true, the point is translated in the opposite direction with respect to inTargetPoint. |
|
inline |
Translates the point towards a target point.
| inTargetPoint | Point that define the direction of translation. |
| inDistance | Distance of translation. |
| inInverse | If true, the point is translated in the opposite direction with respect to inTargetPoint. |
Translates the point coordinates using the provided vector.
| inDelta | Translation vector. |
| inInverse | If true, the vector with opposite direction is used. |
|
inline |
Translates the rectangle using the provided vector.
| inDelta | Translation vector. |
| inInverse | If true, the vector with the opposite direction is used. |
|
inline |
Translates the segment using the provided vector.
| inDelta | Translation vector. |
| inDeltaAlignment | Coordinate system used for translation. |
| inInverse | If true, the vector with the opposite direction is used. |
Translates the coordinate system using the provided vector.
| inDelta | Translation segment. |
| inInverse | If true, the vector with the opposite direction is used. |
|
inlinestatic |
Translates all the points in the array.
The operation is applied in-place.
| ioPoints | Input points. |
| inDelta | Input translation vector. |
| inInverse | If true, the translation is applied using the vector with opposite direction. |
Trims the line so that it is entirely contained in a box.
| inBox | Input box. |
|
inline |
Trims the line so that it is entirely contained in a rectangle.
| inRectangle | Input rectangle. |
Trims the segment so that it is entirely contained in a box.
| inBox | Input box. |
Trims the segment so that it is entirely contained in a circle.
| inCircle | Input circle. |
|
inline |
Trims the segment so that it is entirely contained in a rectangle.
| inRectangle | Input rectangle. |
|
inlinestatic |
Filters the points that are contained in the provided box.
| inPoints | Input points. |
| inBox | Reference box. |
|
inlinestatic |
Filters the points that are contained in the provided region.
| inPoints | Input points. |
| inRegion | Reference region. |