Esempio n. 1
0
 def z(self):
     "Returns the Z coordinate for this Point."
     if self.coord_dim == 3:
         return capi.getz(self.ptr, 0)
Esempio n. 2
0
 def z(self):
     "Returns the Z coordinate for this Point."
     if self.coord_dim == 3:
         return capi.getz(self.ptr, 0)
Esempio n. 3
0
<<<<<<< HEAD
        "Returns the Y coordinate for this Point."
=======
        "Return the Y coordinate for this Point."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.gety(self.ptr, 0)

    @property
    def z(self):
<<<<<<< HEAD
        "Returns the Z coordinate for this Point."
=======
        "Return the Z coordinate for this Point."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        if self.coord_dim == 3:
            return capi.getz(self.ptr, 0)

    @property
    def tuple(self):
<<<<<<< HEAD
        "Returns the tuple of this point."
=======
        "Return the tuple of this point."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        if self.coord_dim == 2:
            return (self.x, self.y)
        elif self.coord_dim == 3:
            return (self.x, self.y, self.z)
    coords = tuple