Added alignToEdge()