toCenter

public final Unit toCenter()

Sets the current position to center.

Throws

If any of the position coordinates is negative.