pyfeyn is hosted by Hepforge, IPPP Durham

 [frames] | no frames]

# Class Point Base class for all pointlike objects in Feynman diagrams.

 Instance Methods
` ` __init__(self, x, y, blob=None)
` ` addLabel(self, text, displace=0.3, angle=0)
Add a LaTeX label to this point, either via parameters or actually as a PointLable object.
` ` removeLabels(self)
` ` draw(self, canvas)
Do nothing (abstract base class).
` ` getPath(self)
Return the path of the attached blob path, if there is one, otherwise None.
` ` midpoint(self, otherpoint)
Return the point midway between this point and the argument.
` ` distance(self, otherpoint)
Calculate the distance between this point and the argument.
` ` intercept(self, otherpoint)
Return the y-intercept of the straight line defined by this point and the argument.
` ` tangent(self, otherpoint)
Return the tangent of the straight line defined by this point and the argument.
` ` arg(self, otherpoint)
Return the angle between the x-axis and the straight line defined by this point and the argument (cf.
` ` getBlob(self)
Get the attached blob.
` ` setBlob(self, blob)
Set the attached blob.
` ` getX(self)
Return the x-coordinate of this point.
` ` setX(self, x)
Set the x-coordinate of this point.
` ` getY(self)
Return the y-coordinate of this point.
` ` setY(self, y)
Set the y-coordinate of this point.
` ` getXY(self)
Return the x and y coordinates of this point as a 2-tuple.
` ` setXY(self, xpos, ypos)
Set the x and y coordinates of this point.
` ` x(self)
Alias for getX().
` ` y(self)
Alias for getY().
` ` xy(self)
Alias for getXY().

 Method Details

### __init__(self, x, y, blob=None)(Constructor)

None

Add a LaTeX label to this point, either via parameters or actually as a PointLable object.

None

### draw(self, canvas)

Do nothing (abstract base class).

### getPath(self)

Return the path of the attached blob path, if there is one, otherwise None.

### midpoint(self, otherpoint)

Return the point midway between this point and the argument.

### distance(self, otherpoint)

Calculate the distance between this point and the argument.

### intercept(self, otherpoint)

Return the y-intercept of the straight line defined by this point and the argument.

### tangent(self, otherpoint)

Return the tangent of the straight line defined by this point and the argument.

### arg(self, otherpoint)

Return the angle between the x-axis and the straight line defined by this point and the argument (cf. complex numbers).

### getBlob(self)

Get the attached blob.

### setBlob(self, blob)

Set the attached blob.

### getX(self)

Return the x-coordinate of this point.

### setX(self, x)

Set the x-coordinate of this point.

### getY(self)

Return the y-coordinate of this point.

### setY(self, y)

Set the y-coordinate of this point.

### getXY(self)

Return the x and y coordinates of this point as a 2-tuple.

### setXY(self, xpos, ypos)

Set the x and y coordinates of this point.

### x(self)

Alias for getX().

### y(self)

Alias for getY().

### xy(self)

Alias for getXY().

 Generated by Epydoc 3.0alpha3 on Thu Jun 21 20:09:05 2007 http://epydoc.sourceforge.net