code: def to_vec4(self, isPoint):
          
          vec4 = Vector4()
          vec4.x = self.x
          vec4.y = self.y
          vec4.z = self.z
          if isPoint:
              vec4.w = 1
          else:
              vec4.w = 0
  
          return vec4
docs: Converts this vector3 into a vector4 instance.