Geometry
Geometry studies objects that have shape, distance, angle, position, and transformation structure. In this wiki, geometry is a math foundation used by geometric deep learning, molecular modeling, protein structures, robotics-style agents, and vision.
The basic Euclidean setting represents points as vectors:
A collection of points is often written as a coordinate matrix:
The distance between two points is:
An inner product defines angles:
Transformations
Many geometry-aware models ask whether a quantity should change when the coordinate frame changes. A rigid transform in 3D is:
where is a rotation matrix and is a translation vector.
Distances are preserved under rigid transforms:
This is the math reason why molecular identity should not depend on the arbitrary placement of a structure in a coordinate file.
Coordinate Frame
A coordinate frame is the convention used to assign numbers to geometry. The same object can have different coordinates under a different frame.
| Quantity | Frame behavior |
|---|---|
| pairwise distance | invariant to rotation and translation |
| angle between vectors | invariant to rotation |
| coordinate | changes with frame |
| displacement vector | rotates with frame |
| scalar field on points | often invariant or equivariant depending on target |
This distinction is central for structure models: coordinates are not arbitrary noise, but neither are they absolute labels unless the frame has physical meaning.
Distance Matrix
For point sets, pairwise distances form a matrix:
The distance matrix is invariant to rigid transformations:
It loses orientation and chirality information, but it is often useful for contact maps, molecular geometry, and structure comparison.
Angles and Inner Products
Angles can be computed from normalized vectors:
For three points , the angle at uses:
This is why geometric features often use distances, bond angles, torsion angles, local frames, or relative coordinates rather than absolute coordinates.
Key Ideas
- Points, vectors, distances, angles, frames, and transformations are the core objects.
- Some targets are geometric scalars, such as distance, energy, score, or affinity.
- Some targets are geometric objects, such as coordinates, directions, fields, or frames.
- If a task is coordinate-dependent, ask which transformations should preserve the answer.
- Geometry is the foundation; geometric deep learning is the neural modeling layer built on top.
- Distance-only representations are invariant but may discard orientation-sensitive information.
- Frame-dependent outputs must specify how they transform.
Practical Checks
- What is the geometric object: point cloud, graph with coordinates, surface, grid, curve, or manifold?
- Which quantities are invariant to coordinate transforms?
- Which quantities should rotate, translate, or reflect with the input?
- Is the coordinate frame arbitrary, experimentally meaningful, or introduced by preprocessing?
- Does the representation use absolute coordinates, relative coordinates, distances, or local frames?
- Is chirality or orientation important for the task?