Skip to content

fontgate.fgPoint

fgPoint

Point representation

Constructors: fgPoint() - default fgPoint(fgPoint) - copy fgPoint(float x) fgPoint(tuple(float x, float y)) fgPoint(float x, float y)

Math Operations: fgPoint + fgPoint fgPoint - fgPoint fgPoint * fgPoint fgPoint * float - vector product fgPoint / float fgPoint << fgPoint - True if first point is less or equal to second fgPoint >> fgPoint - True if first point is greater or equal to second fgPoint ^ fgPoint - scalar product

Native bases: object

Captured native MRO: fgPoint, object

Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.

Supplemental documentation: A two-dimensional point. The captured declaration exposes the coordinates x and y and the native vector operations. The captured fgPoint has no point type attribute. Read x and y or use asTuple to inspect coordinates.

Source: generated/fontgate.py: fgPoint captured declaration

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, /, *args: Any, **kwargs: Any) -> None Initialize self. (shared captured text)
angleDiff function (self, arg0: fgPoint) -> fgPoint
angleSum function (self, arg0: fgPoint) -> fgPoint
asDict function (self, *args: Any, **kwargs: Any) -> Any Represent object as dictionary (shared captured text)
asTuple function (self, *args: Any, **kwargs: Any) -> Any Represent object as tuple (shared captured text)
assign function (self, x: float, y: float) -> Any
clear function (self) -> Any (shared captured text)
close_to function (self, d: Any=...) -> bool
collinear function (self, arg0: fgPoint) -> bool
direction function (self) -> fgPoint
dist function (self, arg0: fgPoint) -> float
dist2 function (self, arg0: fgPoint) -> float
distance function (self, *args: Any, **kwargs: Any) -> Any Float distance(fgPoint[, horizontal=false]
doubleScale function (self, *args: Any, **kwargs: Any) -> Any
flip function (self) -> Any
flipped function (self) -> fgPoint
ix function (self) -> int Int ix() - integer fast
iy function (self) -> int Int iy() - integer fast
len function (self) -> float
len2 function (self) -> float
normal function (self) -> fgPoint
rotate function (self, v: fgPoint, c: fgPoint) -> fgPoint
round function (self, *args: Any, **kwargs: Any) -> Any
rx function (self) -> int Int rx() - integer rounded
ry function (self) -> int Int ry() - integer rounded
transform function (self, arg0: fgMatrix) -> Any (shared captured text)
transformed function (self, arg0: fgMatrix) -> fgPoint
value function (self, *args: Any, **kwargs: Any) -> Any
x attribute Any
y attribute Any
zero function (self) -> bool