Description
Subtract two end margins from length, divide by positive spacing, floor, and add one for plants.
Spacing calculations place ideal points or modules within a stated geometric extent. End margins, row patterns, and partial border positions affect the count.
Subtract two end margins from length, divide by positive spacing, floor, and add one for plants.
When to use this tool
Use Trellis Vine Spacing End Margin when you need an explicit planting or paving layout-count term.
How to use the tool and how it works
- Enter length, endMargin, spacing. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read plants, usedSpan. Use the output convention below.
Subtract two end margins from length, divide by positive spacing, floor, and add one for plants. Return the interval count times spacing as usedSpan.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| length | Length, count, or code length under the stated domain and unit convention. | Required. Finite number. |
| endMargin | End Margin | Required. Finite number; minimum 0. |
| spacing | Spacing | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| plants | Plants | Required. Safe integer. |
| usedSpan | Used Span | Required. Finite number. |
{
"input": {
"length": 10,
"endMargin": 1,
"spacing": 2
},
"output": {
"plants": 5,
"usedSpan": 8
}
} Limitations and assumptions
- An eligible span of zero still fits one planting point; plant growth, species suitability, and design regulations are not considered.
- 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 a complete site layout that includes boundaries, obstacles, growth, joints, and installation allowances.
References
Similar or alternative tools
- Planting Triangle Row Density Factor
For positive spacing, return spacing × sqrt(3)/2 between triangular rows and density 2/(sqrt(3) × spacing²).
- Patio Paver Cut Border Count
Round width/paverWidth and length/paverLength upward for columns and rows.