> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loft.build/llms.txt
> Use this file to discover all available pages before exploring further.

# datums-at-an-angle

The `datums-at-an-angle` example as shipped in [`examples/datums-at-an-angle/`](https://github.com/loftlang/loft/tree/main/examples/datums-at-an-angle) — 4 files, one project. Every file compiles in CI; a folder here navigates, never scopes.

## `model.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
project "Datums at an angle"
level L1 elev 0'
level L2 elev 12'
level L3 elev 24'
grid A vertical   at 0'
grid B vertical   at 30'
grid 1 horizontal at 0'
grid 2 horizontal at 30'
grid 3 horizontal at 60'
walltype EXT-1 layers [brick 4", air 1", core: stud 6", gyp 5/8"]

grid     C  bearing 23deg at 30'                                   # oblique gridline, bubble on it; N23°E through (27.6', -11.7')
grid     D  bearing 45° at 40'                                     # ° accepted on input; prints as 45deg
refplane RP0 bearing 23deg at 50'                                  # vertical, parallel to C, 20' to its right; green line, id at the ends
refplane RV  bearing 23deg at (grid.A, grid.1)                     # vertical, through the A/1 corner
wall EXT-1 W1 from grid.1 to grid.2 along grid.C base level.L1 top level.L3   # a wall along a skewed datum, two stories tall so S1 reaches the deck
wall EXT-1 W2 from grid.A to refplane.RP0 along grid.2 base level.L1   # a wall that STOPS at a skewed refplane
refplane BW bearing 0deg tilt 1:12 at (grid.A, grid.1, level.L1)          # a battered wall's west face: x = z/12; S1 shows it leaning east 1:12
refplane LN bearing 90deg lean 1:12 at (grid.A + 1', grid.1, level.L1)    # the same wall's east face, 1'-0" east of BW at the base: x = 12" + z/12; written column-style
refplane R1 bearing 180deg slope 4:12 at (grid.A, grid.1, level.L2)  # a 4:12 roof plane: z = 12' + y/3; falls south
refplane RM bearing 90deg rise 1:12 at (grid.A, grid.1, level.L1)  # a ramp plane: z = x/12; rises east
refplane USDECK elev level.L3 - 1'-6"                              # flat, z = 22'-6"
refplane HG through (grid.B, level.L2) tilt 1:12                   # hinge on grid B at L2: BW slid east to B and up to L2
refplane RP2 through (grid.B, grid.2, level.L1) (grid.B, grid.3, level.L1) (grid.A, grid.2, level.L2)   # surveyor's three shots: z = 12' - 0.4x
```

## `views/L1-plan.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
view plan L1-plan of level.L1 scale 1/4" cut 4'-0" name "Level 1 Floor Plan"   # the plan every criterion below means
```

## `views/S1.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
view section S1 at grid.1 + 4' to grid.3 name "Section"            # looks north; BW, LN, HG and RM edge-on
```

## `views/S2.loft`

```loft theme={"theme":{"light":"github-light","dark":"github-dark"},"languages":{"custom":["/languages/loft.json","/languages/loft-fragment.json"]}}
view section S2 at grid.C to refplane.RP0 name "Along C"           # cut on C, looking toward RP0
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.