Description
Shift normalized bearing by 22.5 degrees and floor into eight clockwise 45-degree sectors starting north.
Traditional directional systems assign named sectors to compass bearings. A numerical sector mapping depends on its origin, widths and boundary convention; true and magnetic reference labels do not themselves perform a declination correction.
Shift normalized bearing by 22.5 degrees and floor into eight clockwise 45-degree sectors starting north.
When to use this tool
Use Feng Shui Eight-Direction Sector Calculator when you need the specified traditional bearing-label mapping.
How to use the tool and how it works
- Enter bearingDegrees, reference. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
Require bearingDegrees 0-360 and true/magnetic reference. Shift normalized bearing by 22.5 degrees and floor into eight clockwise 45-degree sectors starting north.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| bearingDegrees | Bearing Degrees Unit: deg. | Required. Finite number. |
| reference | True or magnetic label retained unchanged; no magnetic-declination correction. | Required. Text; one of "true", "magnetic". Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Object containing the calculated members; expand to inspect the fields below. | Required. Object. |
| result.sector | Sector | Calculated result member: string. |
| result.sectorIndex | Sector Index | Calculated result member: number. |
| result.reference | True or magnetic label retained unchanged; no magnetic-declination correction. | Calculated result member: string. |
{
"input": {
"bearingDegrees": 22.5,
"reference": "true"
},
"output": {
"result": {
"sector": "NE",
"sectorIndex": 1,
"reference": "true"
}
}
} Limitations and assumptions
- Boundary ties go into the next clockwise sector. No declination is applied and traditional sector labels do not establish predictive effects or safe building design.
- Outputs are nested inside result. 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 an appropriate compass and coordinate-reference method for actual orientation. Treat symbolic sector labels as a cultural convention and assess practical building or environmental questions through the relevant professional methods.
References
Similar or alternative tools
- Feng Shui Sitting and Facing Mountain Calculator
Normalize facing modulo 360, add 180 for sitting, and map each into centered 15-degree sectors using the fixed 24-label list.
- Positive Modulo Calculator
Calculate a normalized nonnegative modulo result.