unitPoint
Returns the unit Point for this axis.
Each component is 0.0 except the component for this axis, which is 1.0. Multiply by child index and gap to compute the child's position offset:
val unit = StackAxis.Z.unitPoint() // Point(0.0, 0.0, 1.0)
val childPosition = Point(unit.x * index * gap, unit.y * index * gap, unit.z * index * gap)Content copied to clipboard
Also useful for diagonal stacking — add two axis unit points and use the result as a direction vector into a nested io.github.jayteealao.isometric.compose.runtime.Group position.