Move a hole pattern between drawing references
A drilling pattern may need to move to another origin, turn on the drawing, or reflect across an axis. Transform the whole list of centers together so the same operation applies to every point. This calculator works with planar coordinates; it does not extract dimensions from a photograph or certify a template for a particular lock.
Describe the origin and axis directions before calculating. Use +x to the right and +y upward when following the example. Coordinates, translations, and the selected unit must describe the same drawing scale. Negative coordinates locate points on the other side of an axis; they do not mean negative hole diameters.
Reflection, rotation, then translation
The operation order matters. Reflection across the x-axis changes (x, y) to (x, −y); reflection across the y-axis changes it to (−x, y). A reflection changes the orientation of the pattern. This is a mathematical operation, not a door-handing designation.
For the reflected coordinates (u, v), counterclockwise angle θ, and translation (tx, ty):
x′ = u cos θ − v sin θ + tx
y′ = u sin θ + v cos θ + ty
Rotation is about the source origin. Translation happens last, along the original axes. To rotate about another point, first express the source pattern relative to that point; do not enter its coordinates as a final translation and expect the same operation.
Worked hole-pattern example
Take centers (1, 2) in and (3, 4) in, with no reflection. Turn them 90° counterclockwise, then translate 10 in right and 20 in up.
| Source center (in) | After rotation (in) | Final center (in) | Final center (mm) |
|---|---|---|---|
| (1, 2) | (−2, 1) | (8, 21) | (203.200, 533.400) |
| (3, 4) | (−4, 3) | (6, 23) | (152.400, 584.200) |
The center spacing remains √8 in because rigid rotation and translation preserve distance. With reflection across the x-axis first, the first point instead becomes (2, 1) after rotation and (12, 21) in after translation. This difference is why the order is explicit.
Read the transformed table
Each row retains its source order, with x and y shown in both inches and millimeters. Inch inputs accept fractions, including signed mixed numbers such as -1 1/4. Millimeters and angles accept decimals. Use one comma-separated pair per line, up to 50 pairs. Coordinates and translations are limited to ±1 billion inches to bound numerical work; this is a software limit.
Multiples of 90° use exact coordinate arithmetic. Other angles use numerical sine and cosine, so their coordinates are approximate. All table values display three decimal places. For exact arithmetic, half-way display ties round away from zero; trigonometric results also include floating-point approximation. Display precision does not establish drilling tolerance.
Changing the unit reinterprets the entries. To retain the same physical pattern, convert the coordinates and translations together with the inch and millimeter converter first.
Check the drawing before machining
Match the observation side, datum, rotation direction, and manufacturer drawing revision. A reflected pattern can preserve distances while putting a feature on the wrong side. Hole diameters, cutter compensation, door thickness, edge bevel, and hardware clearances are outside this coordinate model.
The transformation follows elementary Cartesian rotation and reflection. OpenStax’s definition of positive counterclockwise rotation supplies the angle convention. For a straight row with equally spaced centers rather than an existing two-dimensional pattern, use the equal hole spacing calculator.