def as_percent(self, value):
        """Return a new vector scaled by given decimal percent"""
        new_vec = self.copy()
        new_vec.length = value * self.length
        return new_vec
def as_percent ( self , value ) : new_vec = self . copy ( ) new_vec . length = value * self . length return new_vec
Return a new vector scaled by given decimal percent