Angles between points #
This file defines unoriented angles in Euclidean affine spaces.
Main definitions #
EuclideanGeometry.angle
, with notation∠
, is the undirected angle determined by three points.
TODO #
Prove the triangle inequality for the angle.
The undirected angle at p2
between the line segments to p1
and
p3
. If either of those points equals p2
, this is π/2. Use
open scoped EuclideanGeometry
to access the ∠ p1 p2 p3
notation.
Equations
- EuclideanGeometry.angle p1 p2 p3 = InnerProductGeometry.angle (p1 -ᵥ p2) (p3 -ᵥ p2)
Instances For
The undirected angle at p2
between the line segments to p1
and
p3
. If either of those points equals p2
, this is π/2. Use
open scoped EuclideanGeometry
to access the ∠ p1 p2 p3
notation.
Equations
- EuclideanGeometry.«term∠» = Lean.ParserDescr.node `EuclideanGeometry.«term∠» 1024 (Lean.ParserDescr.symbol "∠")
Instances For
Angles are translation invariant
Angles are translation invariant
Angles are translation invariant
Angles are translation invariant
Angles in a vector space are translation invariant
Angles in a vector space are translation invariant
Angles in a vector space are translation invariant
Angles in a vector space are invariant to inversion
Angles in a vector space are invariant to inversion
The angle at a point does not depend on the order of the other two points.
The angle at a point is nonnegative.
The angle at a point is at most π.
The angle ∠AAB at a point is always π / 2
.
The angle ∠ABB at a point is always π / 2
.
The angle ∠ABA at a point is 0
, unless A = B
.
Alias of EuclideanGeometry.angle_self_left
.
The angle ∠AAB at a point is always π / 2
.
Alias of EuclideanGeometry.angle_self_right
.
The angle ∠ABB at a point is always π / 2
.
Alias of EuclideanGeometry.angle_self_of_ne
.
The angle ∠ABA at a point is 0
, unless A = B
.
If the angle ∠ABC at a point is π, the angle ∠BAC is 0.
If the angle ∠ABC at a point is π, the angle ∠BCA is 0.
If ∠BCD = π, then ∠ABC = ∠ABD.
If ∠BCD = π, then ∠ACB + ∠ACD = π.
Vertical Angles Theorem: angles opposite each other, formed by two intersecting straight lines, are equal.
If ∠ABC = π then dist A B ≠ 0.
If ∠ABC = π then dist C B ≠ 0.
If ∠ABC = π, then (dist A C) = (dist A B) + (dist B C).
If A ≠ B and C ≠ B then ∠ABC = π if and only if (dist A C) = (dist A B) + (dist B C).
If ∠ABC = 0, then (dist A C) = abs ((dist A B) - (dist B C)).
If A ≠ B and C ≠ B then ∠ABC = 0 if and only if (dist A C) = abs ((dist A B) - (dist B C)).
If M is the midpoint of the segment AB, then ∠AMB = π.
If M is the midpoint of the segment AB and C is the same distance from A as it is from B then ∠CMA = π / 2.
If M is the midpoint of the segment AB and C is the same distance from A as it is from B then ∠CMB = π / 2.
If the second of three points is strictly between the other two, the angle at that point is π.
If the second of three points is strictly between the other two, the angle at that point (reversed) is π.
The angle between three points is π if and only if the second point is strictly between the other two.
If the second of three points is weakly between the other two, and not equal to the first, the angle at the first point is zero.
If the second of three points is strictly between the other two, the angle at the first point is zero.
If the second of three points is weakly between the other two, and not equal to the first, the angle at the first point (reversed) is zero.
If the second of three points is strictly between the other two, the angle at the first point (reversed) is zero.
If the second of three points is weakly between the other two, and not equal to the third, the angle at the third point is zero.
If the second of three points is strictly between the other two, the angle at the third point is zero.
If the second of three points is weakly between the other two, and not equal to the third, the angle at the third point (reversed) is zero.
If the second of three points is strictly between the other two, the angle at the third point (reversed) is zero.
The angle between three points is zero if and only if one of the first and third points is weakly between the other two, and not equal to the second.
The angle between three points is zero if and only if one of the first and third points is strictly between the other two, or those two points are equal but not equal to the second.
Three points are collinear if and only if the first or third point equals the second or the angle between them is 0 or π.
If the angle between three points is 0, they are collinear.
If the angle between three points is π, they are collinear.
If three points are not collinear, the angle between them is nonzero.
If three points are not collinear, the angle between them is not π.
If three points are not collinear, the angle between them is positive.
If three points are not collinear, the angle between them is less than π.
The cosine of the angle between three points is 1 if and only if the angle is 0.
The cosine of the angle between three points is 0 if and only if the angle is π / 2.
The cosine of the angle between three points is -1 if and only if the angle is π.
The sine of the angle between three points is 0 if and only if the angle is 0 or π.
The sine of the angle between three points is 1 if and only if the angle is π / 2.
Three points are collinear if and only if the first or third point equals the second or the sine of the angle between three points is zero.
If three points are not collinear, the sine of the angle between them is positive.
If three points are not collinear, the sine of the angle between them is nonzero.
If the sine of the angle between three points is 0, they are collinear.