Skip to content

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
__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

__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
__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

__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