Affine combination Created 2026-10-14 Updated 2026-10-14
An affine combination is a weighted point with . The coefficients can be negative. The sum is meaningful in an affine space without selecting a preferred origin: relative to any point , it means . Affine maps preserve these weighted points. [ref]
For an original example in the Euclidean plane, take , and . Then lies inside their triangle. Its coefficients are nonnegative, making it a convex combination. In contrast, is beyond : it is an affine combination but not a convex combination of these three points. Negative weights allow extrapolation, rather than only interpolation inside the convex hull.
For the affine map , the same weights produce from , and produce from . Thus one can compute a weighted point before transforming the vertices or afterwards, obtaining exactly the same point.
Figure 1.
Positive and signed affine weights before and after a transformation
. The green point has weights and stays inside the transformed triangle. The orange point has weights and lies beyond the corresponding edge endpoint. These are original coordinate examples; the same weights are used in both panels. Details.
This is useful whenever an object is built from weighted control points: its construction commutes with an affine map, so transforming the control points transforms the constructed object as well. The sum of the weights is the essential condition; no assumption about lengths or angles is needed.
Affine map Created 2026-10-07 Updated 2026-10-14
An affine map combines a linear map with a translation. After choosing coordinate origins, it has the form , , where the matrix is its linear part of an affine map and is a fixed vector. Equivalently, it preserves every affine combination. [ref]
An original planar example is
It stretches horizontally, applies a shear mapping, and then translates. The vertices , and become , and . A square grid becomes a grid of parallelograms; straight edges and their weighted points still fit together.
Figure 1.
An affine map preserves straightness while changing lengths and angles
. An original triangle and finite window of a square grid, followed by their images under . The right-hand grid is the transformed left-hand grid. Equal axis scales make the altered lengths and angles visible. Details.
This map is not a linear map with respect to the displayed origins, because rather than zero. It also is not a Euclidean similarity: has length and has length , while the right angle at becomes . Its determinant is , so it doubles planar area. These metric changes explain why affine geometry studies straightness, incidence and weighted points rather than treating every transformation as an isometry.
The linear part is an invertible matrix, giving the concise inverse . More generally an affine map is bijective exactly when its linear part of an affine map is bijective. Between equal finite-dimensional spaces, this means an invertible matrix; the translation cannot repair a loss of rank of a linear map.
Altitude of a triangle 2026-10-25
An altitude of a triangle is the whole line through one vertex that is orthogonal to the line through the opposite side. For vertex and opposite vertices , its equation in position vectors is . The three such lines meet at the orthocenter; they need not meet inside the triangle.
Angle bisector Created 2026-10-14 Updated 2026-11-05
An angle bisector is a ray dividing an angle into two equal angles. For nonopposite unit vectors , its internal direction is : the dot products with and are equal. The direction bisects the external angle. The three internal angle bisectors of a triangle meet at the incenter, equidistant from its side lines. The angle bisector theorem relates each bisector to side-length ratios.
Angle bisector theorem 2026-10-20
An internal angle bisector of a triangle divides the opposite side in the ratio of the two adjacent sides. If bisects the angle at in triangle , then . Comparing the areas of triangles and proves this: their shared altitude gives the ratio , while their equal included angles give .
Apollonius's theorem Created 2026-10-20 Updated 2026-11-05
For a triangle with vertices and midpoint of , Apollonius's theorem states
Thus the length of a median of a triangle is determined by the three side lengths. Put the origin at , so , , . Expanding the dot products in cancels the cross terms, giving . Since , this proves the formula and relates it to the parallelogram law. For sides , , the median has length four.
Take a circle of radius , a vertex on its circumference, and two chords from symmetric about the diameter through . If their angle is , choose the arc between their other endpoints that does not contain . The area bounded by the two chords and that arc is . To calculate it, set and the other endpoints to . Their triangle has area , and the adjoining circular segment, of central angle , has area . The sum gives the formula, including the limiting zero-area and full-disk cases.
Area of a regular octagon Created 2026-09-24 Updated 2026-11-05
A regular polygon with eight sides, each of length , has area
Join its center to all eight vertices of a polygon. The resulting congruent isosceles triangles each have base and central angle . Bisecting one gives a right triangle with opposite side and adjacent side , the perpendicular center-to-side distance. Hence
Adding the eight triangle areas gives , proving the formula. For side length one, the area is .
Astronomical horizon Created 2026-10-06 Updated 2026-10-14
The astronomical horizon is the great circle where the horizontal plane through the observer intersects the celestial sphere. It is perpendicular to the local vertical, so every direction on the astronomical horizon has altitude and zenith distance . In the local horizontal coordinate system, it consists of the unit vectors satisfying . This geometric reference remains defined when buildings or mountains hide it; a visible skyline is not a calibration of zero altitude.
Three boundaries must be distinguished. The astronomical horizon fixes the angular reference. Terrain supplies a site-dependent boundary with apparent altitude that changes with azimuth. Atmospheric refraction changes the apparent direction of incoming light, and can also change the apparent distant boundary. A point source clears an opaque terrain boundary only if when both are expressed in the same apparent horizontal coordinate system; this clearance condition does not guarantee visibility through clouds or bright sky. In the synthetic diagram, a source with geometric altitude and an imposed illustrative upward correction remains behind a boundary. The chosen is an algebraic illustration, not a fitted atmospheric prediction.
Figure 1.
Synthetic calibration triangle and invented terrain boundary; angular zero, apparent altitude and geometric horizon are separate
. Details.
Even an unobstructed sea boundary need not coincide with the astronomical horizon. On a spherical Earth of radius , an observer at height sees the unrefracted tangent to the surface at a downward angle satisfying . The right-angle tangent triangle supplies this relation; the visible boundary then has altitude . With illustrative and , , before atmospheric refraction. Raising the eye therefore changes the visible boundary without redefining the horizontal plane.
The US Naval Observatory's rise/set definitions explicitly distinguish the geometric reference from apparent contact with a visible disk: the standard Sun calculation puts its centre below the horizontal plane, combining an average radius with of atmospheric refraction. An angular minute is in the minute and second of arc convention. This is an operational average under stated conditions, rather than a universal zero of altitude. The same source identifies weather, local topography and observer height as limits on predicted rise/set time. An observation log should therefore retain the level reference, site and eye height, terrain profile, observation time, and whether each reported altitude is geometric or apparent. [ref].
Average power 2026-10-14
Average power divides the work over a nonzero interval by the elapsed time. For the same point mass driven from rest through by a net force, the displacement is . Thus
This average power is half the final instantaneous power because is a linear function of time, starting at zero. Its graph of a function bounds a triangle of area ; the horizontal line at average power encloses a rectangle with the same area. In general, an endpoint value of instantaneous power does not determine average power. [ref]
Axis-aligned bounding box 2026-10-14
An axis-aligned bounding box is a Cartesian product of closed intervals aligned with a chosen Cartesian coordinate system:
Only the two opposite corners and need to be stored. In two dimensions it is a rectangle. Changing the Cartesian coordinate system can change how tightly the axis-aligned bounding box fits the same object.[ref]
For a nonempty finite set of points , the smallest such axis-aligned bounding box has
These minimum and maximum values also enclose the convex hull of : each coordinate of a convex combination lies between the smallest and largest input coordinates. In particular, three vertices of a polygon determine the axis-aligned bounding box of a filled triangle. For a general nonempty compact set, the same formulas use all its points; inspecting only an arbitrary finite sample is insufficient.
Given nonempty boxes and , the closed interval convention gives
Equivalently, reject as soon as or in any coordinate. The surviving set intersection has endpoints and . This is an exact box test, while its conclusion about enclosed objects remains a conservative enclosure test.[ref]
Equality counts as touching: and share an edge, so their set intersection is nonempty. Replacing every in the overlap formula by tests intersection of the interiors of full-dimensional boxes and excludes this contact. A zero-width closed interval can represent a point or a lower-dimensional enclosure, and must not automatically be discarded when touching counts. A box with some is empty; test emptiness before applying rules intended for nonempty boxes. The broad phase must retain touching candidates whenever the narrow phase counts touching as a hit.
For nonempty boxes, the smallest enclosing axis-aligned bounding box of their set union is
This operation supplies the parent boxes in a bounding volume hierarchy. It is an enclosure of the set union, rather than generally the set union itself. In floating-point arithmetic, comparisons are conclusive only for endpoints that still enclose the intended exact objects; use certified bounds such as interval arithmetic with outward rounding when that guarantee is required.
// Target: analysis.bigb
Bent molecular geometry 2026-10-13
In bent molecular geometry, two neighbours and their central chemical atom form a noncollinear triangle, with an interior bond angle strictly between and . Water, , is the standard example. The NIST CCCBDB experimental water entry, internal coordinates, citing Hoy and Bunker (1979) gives the equilibrium H–O–H bond angle as with quoted uncertainty , usually rounded to .
The oxygen in water has two bonding electron domains and two lone pairs. Its ideal electron pair geometry is tetrahedral, while the three atomic nuclei give bent molecular geometry. Three points always lie in a plane; this does not make the four-domain scaffold planar. Nor does the word bent by itself determine an electron domain count: the same atomic shape can arise from other domain arrangements.
In an illustrative model with two equal bond-dipole contributions of magnitude separated by bond angle , their sum of vectors points along the bisector and has magnitude . At it vanishes; at it is approximately . This ratio is a geometric calculation, not a prediction of water's measured electric dipole moment. The entire electron density, including contributions represented by lone pairs, matters. Water is a polar molecule; chemical polarity helps explain its interactions with other polar molecules. See McMurry, Organic Chemistry, §2.2: water, lone-pair contributions, and polarity.
Bond angle Created 2026-10-13 Updated 2026-10-20
A bond angle is the angle between two chemical bonds sharing a central chemical atom. In H–O–H, the middle symbol identifies the vertex: the angle is at oxygen. Let and be the nonzero displacement vectors from that atomic nucleus to the two neighbours. The actual three-dimensional bond angle satisfies
using the dot product and Euclidean norm. Rotating the whole molecule preserves this expression; projecting it onto a page generally does not.
There is another useful way to find a bond angle. If the two bond lengths are and the distance between the outer atomic nuclei is , the law of cosines gives
For equal bond lengths , this becomes . Thus a measured outer-atom separation contains information about a bond angle even though those outer chemical atoms are not directly joined by a chemical bond.
For a stipulated rigid, equal-bond length model using water's equilibrium bond angle, , whereas a straight H–O–H arrangement would give . These are calculated geometric ratios, not new measured distances. Gas electron diffraction illustrates how pair-distance information can constrain molecular geometry. Substituting independently averaged distances into the rigid triangle formula does not automatically recover an equilibrium bond angle, because averaging and this nonlinear calculation need not commute.
Bounding volume 2026-10-14
A bounding volume is a simple enclosing set for an object : every point of belongs to . Its purpose is to make a cheap rejection possible before examining the object itself. For example, an axis-aligned bounding box can enclose a triangle using just its smallest and largest coordinates.
The guarantee is one-sided. If and , then
Thus an empty set intersection of the bounding volumes certifies an empty set intersection of the objects. An overlap of the bounding volumes is necessary for actual intersection, but does not prove it. This is a conservative enclosure test: rejection is conclusive, acceptance means further examination is needed.
Consider the filled triangles with vertices of a polygon and with vertices of a polygon . Their axis-aligned bounding boxes overlap in . Nevertheless, every point of satisfies , whereas every point of satisfies . The two triangles are disjoint. The shaded square in the bounding volume hierarchy illustration makes this false candidate visible.
For collision detection, a broad phase produces possible object pairs from bounding volume tests; a narrow phase examines the actual shapes, for example with a triangle-triangle intersection algorithm. Scott Le Grand's Chapter 32. Broad-Phase Collision Detection with CUDA explains this separation in its opening paragraphs. Whether touching counts as a collision must be specified by the application.
An enclosure must cover the entire object being queried. A box fitted to samples of a parametric curve only guarantees enclosure of the sampled points, unless a separate bound covers the whole parametric curve. For a Bézier curve, the convex hull of its control points provides such a bound on its defining parameter interval. In floating-point arithmetic, outward rounding can preserve certified coordinate bounds; an inward roundoff error can invalidate a rejection. Bounds must also be updated when objects move.
Bounding volume hierarchy 2026-10-14
A bounding volume hierarchy is a data structure arranged as a rooted tree: leaves store objects, and each internal node stores a bounding volume enclosing its children in a rooted tree. Consequently, every node encloses all objects in its subtree. A common choice is a binary tree of axis-aligned bounding boxes. The objects assigned to sibling subtrees can be different even when their bounding volumes overlap.[ref]
Here is an exact two-dimensional example. Use the triangles from bounding volume, together with having vertices of a polygon and having vertices of a polygon . Group under , and under . Their parent axis-aligned bounding boxes and the box at the root of a tree are
The diagram shows all seven nodes. Taking the coordinate-wise minimum and maximum of the two child boxes constructs each parent box; the resulting box contains the set union of the children, and can also contain empty space between them.
Figure 1.
Four exact triangles, their enclosing boxes, and a seven-node bounding volume hierarchy arranged as a binary tree
. Details.
A bounding volume hierarchy traversal starts at the root of a tree and discards a subtree when its bounding volume misses the query. Accepted internal nodes expose their children; accepted leaves supply candidates for actual shape tests. Box2D's official Collision: Dynamic Tree describes axis-aligned bounding box region queries that return overlapping leaf boxes. A query box that bounds a different query shape can produce additional false candidates.
For the closed query rectangle
left-first depth-first search tests the node boxes in order: root, , , , . The first four overlap ; does not, because its smallest -coordinate is . Pruning skips both and . Five box tests leave two broad phase candidates. The narrow phase rejects , since throughout , and accepts : the point belongs to both and . There are two detailed shape tests and one true hit.
Figure 2.
An exact rectangle query prunes the right subtree and leaves two box candidates but only one triangle hit
. Details.
For a query asking for all intersections, time complexity depends on the number of visited nodes and the cost of each candidate shape test. With fixed dimension and constant bookkeeping cost per node, the work is
where counts candidate objects and is Big O notation. A balanced binary tree has small height of a binary tree, but a query can enter both children at every level. In this example a query containing visits all seven nodes and tests all four triangles. More generally, a full binary tree with single-object leaves has nodes, so such a query takes work for constant-cost shape tests even when its height of a binary tree is . Listing hits itself requires outputs. Small height alone gives no unconditional logarithmic query bound.
For collision detection between two bounding volume hierarchies, traverse pairs of nodes: reject disjoint pairs of bounding volumes, expand a nonleaf member of an accepted pair, and apply the narrow phase at accepted leaf pairs. A single collection's self-query must exclude pairing an object with itself and avoid duplicate unordered pairs. If every object overlaps every other object, reporting all pairs already requires results. Construction quality, empty space in boxes and the queries determine how much pruning is useful.[ref]
For a short correctness outline, an object is enclosed by its leaf box, and each child box is enclosed by its parent box. Repeated subset relations carry this property to every ancestor. A true query intersection therefore prevents rejection at every ancestor of the object's leaf. Updating leaf boxes after motion also requires restoring all affected ancestor bounds before querying.
Carathéodory's theorem (convex hull) Created 2026-10-14 Updated 2026-10-18
Every point in the convex hull of a subset of is a convex combination of at most points of that subset. Thus in the plane three ingredients always suffice, however many samples were supplied. The representation of in convex hull illustrates this bound. Two ingredients need not suffice: the centroid of a triangle with only its three vertices as input is on none of their three pairwise line segments.
A short proof outline removes redundant ingredients. With more than points, the augmented vectors are linearly dependent. A dependence lets the weights vary while preserving both their sum and the represented point. Move along it until one positive weight first becomes zero; all weights stay nonnegative. Repeating leaves at most positive weights.
In his 1911 paper, Constantin Carathéodory used convex geometry to investigate the possible Fourier coefficients of positive harmonic functions. Its introduction interprets convex mixtures through the center of mass, connecting finite-dimensional geometry to constraints on a function's coefficients.[ref]
Centroid Created 2026-10-14 Updated 2026-11-05
The centroid of a region with finite positive volume is the average of position with respect to uniform volume:
provided the component integrals exist. For a planar region use area in place of volume; for finitely many equally weighted points use their arithmetic mean. The centroid of a uniform triangle is in terms of its vertex position vectors, the intersection of its medians of a triangle. For nonuniform mass density, weighting the same integral by density instead gives the center of mass. The vertex centroid of a general polygon need not equal the centroid of its filled interior.
Circular segment 2026-10-20
A circular segment is the part of a disk bounded by a chord and one of the two circular arcs joining its endpoints. For radius and the chosen arc's central angle in radians, its area is . Subtract the signed central triangle of area from the circular sector of area . Angles below give the smaller segment and angles above the larger one.
Circumcircle 2026-10-14
The circumcircle of a nondegenerate triangle is the unique circle through its three vertices. Its center is the circumcenter, found by intersecting two perpendicular bisectors; equality of distances to all three vertices proves existence, and subtracting the squared-distance equations proves uniqueness. For a right triangle, the midpoint of its hypotenuse is equidistant from all vertices, so its circumradius is half the hypotenuse length.
Circumradius 2026-10-20
The radius of a triangle's circumscribed circle, whose center is the circumcenter. For side lengths and area , it satisfies .