typerig.core.objects.point
typerig.core.objects.point (version 0.26.2)
# MODULE: TypeRig / Core / Point (Object) # ----------------------------------------------------------- # (C) Vassil Kateliev, 2017-2020 (http://www.kateliev.com) # (C) Karandash Type Foundry (http://www.karandash.eu) #------------------------------------------------------------ # www.typerig.com
Modules
- math
Classes
class Point(builtin.object)
# - Classes -----------------------------
Methods
- abs(self)
- add(self, other)
-
# -- Operators
- and(self, other)
-
self & other: Used as for Scalar product
- div(self, other)
- init(self, *argv)
- mul(self, other)
- neg(self)
- or(self, other)
-
self | other: Used as for Cross product
- repr(self)
- sub(self, other)
- angle_to(self, other, add=90)
-
Angle to another point in radians
- diff_to(self, other)
- doFlip(self, sign=(True, True))
- doSwap(self)
-
# -- Modifiers
- doTransform(self, transform=None)
- solve_width(self, y=0)
-
Get width - find adjacent X by opposite Y
- solve_x(self, y)
- solve_y(self, x)
Descriptors
- dict
-
dictionary for instance variables (if defined)
- weakref
-
list of weak references to the object (if defined)
- angle
- magnitude
- slope
- swap
- tuple
- unit
- y_intercept
class Void(Point)
- Method resolution order:
- Void
- Point
- builtin.object
Methods
- init(self, *argv)
Methods from Point
- abs(self)
- add(self, other)
-
# -- Operators
- and(self, other)
-
self & other: Used as for Scalar product
- div(self, other)
- mul(self, other)
- neg(self)
- or(self, other)
-
self | other: Used as for Cross product
- rdiv = div(self, other)
- repr(self)
- rmul = mul(self, other)
- sub(self, other)
- truediv = div(self, other)
- angle_to(self, other, add=90)
-
Angle to another point in radians
- diff_to(self, other)
- doFlip(self, sign=(True, True))
- doSwap(self)
-
# -- Modifiers
- doTransform(self, transform=None)
- solve_width(self, y=0)
-
Get width - find adjacent X by opposite Y
- solve_x(self, y)
- solve_y(self, x)
Descriptors from Point
- dict
-
dictionary for instance variables (if defined)
- weakref
-
list of weak references to the object (if defined)
- angle
- magnitude
- slope
- swap
- tuple
- unit
- y_intercept
Point
typerig.core.objects.point.Point = class Point(__builtin__.object)
# - Classes -----------------------------
Methods
- __abs__(self)
- __add__(self, other)
-
# -- Operators
- __and__(self, other)
-
self & other: Used as for Scalar product
- __div__(self, other)
- __init__(self, *argv)
- __mul__(self, other)
- __neg__(self)
- __or__(self, other)
-
self | other: Used as for Cross product
- __repr__(self)
- __sub__(self, other)
- __truediv__ = __div__(self, other)
- angle_to(self, other, add=90)
-
Angle to another point in radians
- diff_to(self, other)
- doFlip(self, sign=(True, True))
- doSwap(self)
-
# -- Modifiers
- doTransform(self, transform=None)
- solve_width(self, y=0)
-
Get width - find adjacent X by opposite Y
- solve_x(self, y)
- solve_y(self, x)
Descriptors
- __dict__
-
dictionary for instance variables (if defined)
- __weakref__
-
list of weak references to the object (if defined)
- angle
- magnitude
- slope
- swap
- tuple
- unit
- y_intercept
solve_width
- typerig.core.objects.point.Point.solve_width = solve_width(self, y=0) unbound typerig.core.objects.point.Point method
-
Get width - find adjacent X by opposite Y
angle_to
- typerig.core.objects.point.Point.angle_to = angle_to(self, other, add=90) unbound typerig.core.objects.point.Point method
-
Angle to another point in radians