An optimal terminal guidance law