Description
Calculate a pocket coordinate's normalized phase within a repeating motif.
Garment geometry distinguishes body and finished dimensions, elastic rest length, seamline/cutline offsets, motif phases and joining losses. A nominal coordinate or length budget does not establish material behavior or a suitable fit. Direction, angle units and the number of gaps rather than objects affect the result.
Calculate a pocket coordinate's normalized phase within a repeating motif.
When to use this tool
Use Garment Pocket Motif Repeat Phase when checking the stated garment length, allowance, repeat or material-record convention.
How to use the tool and how it works
- Enter pocketCoordinate, motifOrigin, repeatLength. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read repeatPhase. Use the output convention below.
Require repeatLength>0. Return the nonnegative remainder of pocketCoordinate-motifOrigin modulo repeatLength, using separately reduced coordinates if their subtraction overflows.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| pocketCoordinate | Pocket Coordinate | Required. Finite number. |
| motifOrigin | Motif Origin | Required. Finite number. |
| repeatLength | Repeat Length | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| repeatPhase | Nonnegative coordinate remainder below repeatLength, including negative original coordinate differences. | Required. Finite number. |
{
"input": {
"pocketCoordinate": 23,
"motifOrigin": 2,
"repeatLength": 10
},
"output": {
"repeatPhase": 1
}
} Limitations and assumptions
- This is a one-dimensional repeat phase, not motif registration, two-dimensional pattern matching or an inferred fabric repeat.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use measured pattern/material properties, fitting evidence and appropriate complete production methods for actual garment fit and construction.
References
Similar or alternative tools
- Fabric Direction Nap Pair Tag
Record the stated fabric direction and nap convention.
- Button Count and Placket End Margin Gaps
Calculate equal button gaps after subtracting two placket-end margins.