oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Relations

Functions

static Array< Point2Doevislib_net.Geometry.Relations.Points.FindClosestPoints (Array< Point2D > inPoints1, Array< Point2D > inPoints2, Optional< Array< int > > outIndices=null)
 For each point of the first array, finds the closest point of the second array.

Box Relations

See also
Relations
bool oevislib_net.Geometry.Box.Contains (Point2Di inPosition)
 Returns true if the box contains the provided point, false otherwise.
bool oevislib_net.Geometry.Box.Contains (Point2D inPoint)
 Returns true if the box contains the provided point, false otherwise.
bool oevislib_net.Geometry.Box.Contains (Array< Point2D > inPoints, Optional< Array< bool > > outIsContainedArray=null, Optional< Array< Point2D > > outPoints=null)
 Checks if all the points in the array are contained in the box.

Circle2D Relations

See also
Relations
bool oevislib_net.Geometry.Circle2D.Contains (Point2D inPoint)
 Returns true if the circle contains the provided point, false otherwise.

Ellipse2D Relations

See also
Relations
bool oevislib_net.Geometry.Ellipse2D.Contains (Point2D inPoint)
 Returns whether the ellipse contains the input point or not.

Line2D Relations

See also
Relations
bool oevislib_net.Geometry.Line2D.Contains (Point2D inPoint, float inError)
 Returns true if the point belongs to the line.

Rectangle2D Relations

See also
Relations
bool oevislib_net.Geometry.Rectangle2D.Contains (Point2D inPoint)
 Checks if the object contains the provided point.
bool oevislib_net.Geometry.Rectangle2D.Contains (Array< Point2D > inPoints, Optional< Array< bool > > outIsContainedArray, Optional< Array< Point2D > > outPoints)
 Checks if all the points in the array are contained in the rectangle.
bool oevislib_net.Geometry.Rectangle2D.IntersectsWith (Rectangle2D inReferenceRectangle, Optional< float > outOverlapArea=null)
 Checks if the object intersect with the provided rectangle.

Ring2D Relations

See also
Relations
bool oevislib_net.Geometry.Ring2D.Contains (Point2D inPoint)
 Returns whether a point is contained inside the ring or not.

Segment2D Relations

See also
Relations
bool oevislib_net.Geometry.Segment2D.Contains (Point2D inPoint, float inError)
 Tests if a point is part of the segment.

Detailed Description

Function Documentation

◆ Contains() [1/10]

bool oevislib_net.Geometry.Box.Contains ( Array< Point2D > inPoints,
Optional< Array< bool > > outIsContainedArray = null,
Optional< Array< Point2D > > outPoints = null )
inline

Checks if all the points in the array are contained in the box.

Parameters
inPointsInput points.
outIsContainedArrayArray containing the test result for each point.
outPointsArray containing all the points for which the test returns true.
Returns
True if all the points are contained in the box, false otherwise.

◆ Contains() [2/10]

bool oevislib_net.Geometry.Box.Contains ( Point2D inPoint)
inline

Returns true if the box contains the provided point, false otherwise.

Parameters
inPointPoint to check.
Returns
True if the box contains the point, false otherwise.

◆ Contains() [3/10]

bool oevislib_net.Geometry.Box.Contains ( Point2Di inPosition)
inline

Returns true if the box contains the provided point, false otherwise.

Parameters
inPositionPoint to check.
Returns
True if the box contains the point, false otherwise.

◆ Contains() [4/10]

bool oevislib_net.Geometry.Circle2D.Contains ( Point2D inPoint)
inline

Returns true if the circle contains the provided point, false otherwise.

Parameters
inPointPoint to check.
Returns
True if the point is inside the circle, false otherwise.

◆ Contains() [5/10]

bool oevislib_net.Geometry.Ellipse2D.Contains ( Point2D inPoint)
inline

Returns whether the ellipse contains the input point or not.

Parameters
inPointPoint to test.
Returns
Whether the ellipse contains the point.

◆ Contains() [6/10]

bool oevislib_net.Geometry.Line2D.Contains ( Point2D inPoint,
float inError )
inline

Returns true if the point belongs to the line.

Parameters
inPointInput point.
inErrorError used to compensate the float computation inaccuracy.
Returns
True if the point belongs to the line.

◆ Contains() [7/10]

bool oevislib_net.Geometry.Rectangle2D.Contains ( Array< Point2D > inPoints,
Optional< Array< bool > > outIsContainedArray,
Optional< Array< Point2D > > outPoints )
inline

Checks if all the points in the array are contained in the rectangle.

Parameters
inPointsInput points.
outIsContainedArrayArray containing the test result for each point.
outPointsArray with the points contained in the rectangle.
Returns
True if all the points are contained in the rectangle, false otherwise.

◆ Contains() [8/10]

bool oevislib_net.Geometry.Rectangle2D.Contains ( Point2D inPoint)
inline

Checks if the object contains the provided point.

Parameters
inPointInput point.
Returns
True if the rectangle contains the point, false otherwise.

◆ Contains() [9/10]

bool oevislib_net.Geometry.Ring2D.Contains ( Point2D inPoint)
inline

Returns whether a point is contained inside the ring or not.

Parameters
inPointPoint to test.
Returns
Whether the point is contained.

◆ Contains() [10/10]

bool oevislib_net.Geometry.Segment2D.Contains ( Point2D inPoint,
float inError )
inline

Tests if a point is part of the segment.

Parameters
inPointInput point.
inErrorError used to compensate the float computation inaccuracy.
Returns
True if the point lies on the segment, false otherwise.

◆ FindClosestPoints()

Array< Point2D > oevislib_net.Geometry.Relations.Points.FindClosestPoints ( Array< Point2D > inPoints1,
Array< Point2D > inPoints2,
Optional< Array< int > > outIndices = null )
inlinestatic

For each point of the first array, finds the closest point of the second array.

Parameters
inPoints1First point array.
inPoints2Second point array.
outIndicesIndices of the selected points of the second array.
Returns
An array in which at each index the point of the closest point found in the second array is copied.

◆ IntersectsWith()

bool oevislib_net.Geometry.Rectangle2D.IntersectsWith ( Rectangle2D inReferenceRectangle,
Optional< float > outOverlapArea = null )
inline

Checks if the object intersect with the provided rectangle.

Parameters
inReferenceRectangleInput rectangle
outOverlapAreaOutput overlap area between the two rectangles. If Null the overlap area is not computed.
Returns
True if the 2 rectangles have at least a common point, false otherwise.