package shape

import (
	

	
	
	
)

type shapeHexagon struct {
	*baseShape
}

func ( *geo.Box) Shape {
	 := shapeHexagon{
		baseShape: &baseShape{
			Type: HEXAGON_TYPE,
			Box:  ,
		},
	}
	.FullShape = go2.Pointer(Shape())
	return 
}

func ( shapeHexagon) () *geo.Box {
	 := .Box.Width
	 := .Box.Height
	 := .Box.TopLeft.Copy()
	.X +=  / 6.
	 /= 1.5
	.Y +=  / 6.
	 /= 1.5
	return geo.NewBox(, , )
}

func hexagonPath( *geo.Box) *svg.SvgPathContext {
	 := 43.6 / 87.3
	 := svg.NewSVGPathContext(.TopLeft, .Width, .Height)
	.StartAt(.Absolute(0.25, 0))
	.L(false, 0, )
	.L(false, 0.25, 1)
	.L(false, 0.75, 1)
	.L(false, 1, )
	.L(false, 0.75, 0)
	.Z()
	return 
}

func ( shapeHexagon) () []geo.Intersectable {
	return hexagonPath(.Box).Path
}

func ( shapeHexagon) () []string {
	return []string{
		hexagonPath(.Box).PathData(),
	}
}

func ( shapeHexagon) (, , ,  float64) (float64, float64) {
	 := 1.5 * ( + )
	 := 1.5 * ( + )
	return math.Ceil(), math.Ceil()
}

func ( shapeHexagon) () (,  float64) {
	return defaultPadding / 2, defaultPadding / 2
}