WOLFRAM

PositivelyOrientedPoints[{p1,p2,p3,,pd+1}]

tests whether the sequence of points p1,p2,p3,,pd+1 is positively oriented.

Details

  • PositivelyOrientedPoints is also known as counterclockwise or anticlockwise in 2D and righthand rule in 3D.
  • Typically used to determine the orientation of a rotational motion with respect to a set of points.
  • A counterclockwise motion is one that proceeds in the opposite direction to the way in which the hands of a clock move around.
  • In two dimensions, the sequence of points p1, p2 and p3 is positively oriented if the orientation of the points is counterclockwise.
  • PositivelyOrientedPoints[{p1,p2,p3}] gives True if the point p3 is in the half-plane bounded by the line through p1 and p2 and extended in the direction of {-1,0}.
  • For positively oriented points p1, p2 and p3, the determinant of the matrix {p2-p1,p3-p1} is positive.
  • In three dimensions, PositivelyOrientedPoints[{p1,p2,p3,p4}] gives True if the point p4 is in the half-space bounded by the plane through the point p1 with normal direction (p2-p1)(p3-p1).
  • For positively oriented points p1, p2, p3 and p4, the dot product of p4-p1 and (p2-p1)(p3-p1) is positive.
  • In d dimensions, d+1 points p1,p2,,pd+1 are positively oriented if the determinant of the matrix {p2-p1,,pd+1-p1} is positive.

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

The points {0,0},{.5,-1},{1,1} are positively oriented:

Out[2]=2

Plot the points:

Out[3]=3

Find the condition for which a point is above a plane:

Out[1]=1

Scope  (3)Survey of the scope of standard use cases

PositivelyOrientedPoints works with two-dimensional points:

Out[1]=1

Three-dimensional points:

Out[2]=2

-dimensional points:

Out[3]=3

PositivelyOrientedPoints works with numerical coordinates:

Out[1]=1

Symbolic coordinates:

Out[2]=2

PositivelyOrientedPoints over a set of coordinates:

Out[1]=1

List of points:

Out[2]=2

Multi-points:

Out[3]=3

Applications  (4)Sample problems that can be solved with this function

Basic Applications  (2)

Graph positively oriented points:

Out[2]=2
Out[3]=3

Show the right-hand rule:

Out[2]=2
Out[3]=3

Geometry  (2)

PositivelyOrientedPoints over lines in 2D:

Out[1]=1

It is equivalent to the orientation of the consecutive vertices of the line:

Out[2]=2

Show the robustness of PositivelyOrientedPoints:

Out[2]=2

Properties & Relations  (4)Properties of the function, and connections to other functions

PositivelyOrientedPoints returns False for collinear points:

Out[2]=2
Out[3]=3

NegativelyOrientedPoints returns False if positively oriented:

Out[2]=2
Out[3]=3

Use RegionMember to test whether points are positively oriented:

Out[1]=1
Out[2]=2

3D points that are not positively or negatively oriented are coplanar:

Out[2]=2
Out[3]=3
Wolfram Research (2020), PositivelyOrientedPoints, Wolfram Language function, https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html.
Wolfram Research (2020), PositivelyOrientedPoints, Wolfram Language function, https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html.

Text

Wolfram Research (2020), PositivelyOrientedPoints, Wolfram Language function, https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html.

Wolfram Research (2020), PositivelyOrientedPoints, Wolfram Language function, https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html.

CMS

Wolfram Language. 2020. "PositivelyOrientedPoints." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html.

Wolfram Language. 2020. "PositivelyOrientedPoints." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html.

APA

Wolfram Language. (2020). PositivelyOrientedPoints. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html

Wolfram Language. (2020). PositivelyOrientedPoints. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html

BibTeX

@misc{reference.wolfram_2025_positivelyorientedpoints, author="Wolfram Research", title="{PositivelyOrientedPoints}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html}", note=[Accessed: 30-May-2025 ]}

@misc{reference.wolfram_2025_positivelyorientedpoints, author="Wolfram Research", title="{PositivelyOrientedPoints}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html}", note=[Accessed: 30-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_positivelyorientedpoints, organization={Wolfram Research}, title={PositivelyOrientedPoints}, year={2020}, url={https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html}, note=[Accessed: 30-May-2025 ]}

@online{reference.wolfram_2025_positivelyorientedpoints, organization={Wolfram Research}, title={PositivelyOrientedPoints}, year={2020}, url={https://reference.wolfram.com/language/ref/PositivelyOrientedPoints.html}, note=[Accessed: 30-May-2025 ]}