def render(self, formatcode): warnings.warn( "render is deprecated, read values directly instead", DeprecationWarning ) return formatcode.format(x=formatFloat(self.x), y=formatFloat(self.y))
def __repr__(self): return "(x0={x0}, y0={y0}, x1={x1}, y1={y1}, r={r})".format( x0=formatFloat(self.x0), y0=formatFloat(self.y0), x1=formatFloat(self.x1), y1=formatFloat(self.y1), r=formatFloat(self.radius))
def render(self, formatcode): return formatcode.format(x=formatFloat(self.x), y=formatFloat(self.y), z=formatFloat(self.z))
def __repr__(self): return "(x={x}, y={y})".format(x=formatFloat(self.x), y=formatFloat(self.y))