pyfeyn2.render.pyx.points¶
Various types of points for vertices etc.
Module Contents¶
Classes¶
Base class for all pointlike objects in Feynman diagrams. |
|
Class for a point drawn with a marker |
|
A square mark. |
|
A circular mark. |
|
A polygonal mark. |
|
A star-shaped mark. |
|
A cross marker, e.g. to show neutrino oscillations. |
Functions¶
|
Return the point midway between this point and the argument. |
|
Calculate the distance between this point and the argument. |
Attributes¶
- pyfeyn2.render.pyx.points.midpoint(point1, point2)[source]¶
Return the point midway between this point and the argument.
- pyfeyn2.render.pyx.points.distance(point1, point2)[source]¶
Calculate the distance between this point and the argument.
- class pyfeyn2.render.pyx.points.Point(x, y, blob=None, labels=None, **kwargs)[source]¶
Base class for all pointlike objects in Feynman diagrams.
Constructor.
- addLabel(text, displace=0.3, angle=0, size=pyx.text.size.normalsize)[source]¶
Add a LaTeX label to this point, either via parameters or actually as a PointLable object.
- intercept(otherpoint)[source]¶
Return the y-intercept of the straight line defined by this point and the argument.
- tangent(otherpoint)[source]¶
Return the tangent of the straight line defined by this point and the argument.
- class pyfeyn2.render.pyx.points.DecoratedPoint(x=None, y=None, center=None, mark=None, fill=[BLACK], stroke=[BLACK], blob=None, labels=[], **kwargs)[source]¶
Bases:
Point,pyfeyn2.render.pyx.utils.VisibleClass for a point drawn with a marker
Constructor.
- class pyfeyn2.render.pyx.points.PolygonalMark(size=0.075, corners=3)[source]¶
Bases:
MarkA polygonal mark.
- class pyfeyn2.render.pyx.points.StarshapeMark(size=0.075, raysize=0.05, rays=3)[source]¶
Bases:
MarkA star-shaped mark.