added Methods setLength and updateCoordinatesByLengthAndAngle