code: def clamp(self, clampVal):
          
          if self.x > clampVal:
              self.x = clampVal
          if self.y > clampVal:
              self.y = clampVal
          if self.z > clampVal:
              self.z = clampVal
          if self.w > clampVal:
              self.w = clampVal
docs: Clamps all the components in the vector to the specified clampVal.