animator.skia.Point¶
- class animator.skia.Point¶
Bases:
pybind11_builtins.pybind11_object- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: animator.skia.Point, ipoint: animator.skia.IPoint) -> None
__init__(self: animator.skia.Point, t: tuple) -> None
Create a
Pointfrom a tuple of two floats.- param t
Tuple of two floats.
__init__(self: animator.skia.Point, x: float, y: float) -> None
Methods
CrossProduct(a, b)Distance(a, b)DotProduct(a, b)Length(x, y)Make(x, y)Normalize(vec)Offset(*args, **kwargs)Overloaded function.
__init__(*args, **kwargs)Overloaded function.
cross(self, vec)distanceToOrigin(self)dot(self, vec)equals(self, x, y)isFinite(self)isZero(self)iset(*args, **kwargs)Overloaded function.
length(self)makeScaled(self, scale)Return a new point that is the result of scaling this point by the given scale.
negate(self)normalize(self)offset(self, dx, dy)scale(self, scale)set(self, x, y)setAbs(self, pt)setLength(*args, **kwargs)Overloaded function.
setNormalize(self, x, y)x(self)y(self)Attributes
fXfY- static CrossProduct(a: animator.skia.Point, b: animator.skia.Point) float¶
- static Distance(a: animator.skia.Point, b: animator.skia.Point) float¶
- static DotProduct(a: animator.skia.Point, b: animator.skia.Point) float¶
- static Make(x: float, y: float) animator.skia.Point¶
- static Normalize(vec: animator.skia.Point) float¶
- static Offset(*args, **kwargs)¶
Overloaded function.
Offset(points: List[animator.skia.Point], offset: animator.skia.Point) -> List[animator.skia.Point]
Offset(points: List[animator.skia.Point], dx: float, dy: float) -> List[animator.skia.Point]
- cross(self: animator.skia.Point, vec: animator.skia.Point) float¶
- distanceToOrigin(self: animator.skia.Point) float¶
- dot(self: animator.skia.Point, vec: animator.skia.Point) float¶
- equals(self: animator.skia.Point, x: float, y: float) bool¶
- isFinite(self: animator.skia.Point) bool¶
- isZero(self: animator.skia.Point) bool¶
- iset(*args, **kwargs)¶
Overloaded function.
iset(self: animator.skia.Point, x: int, y: int) -> None
iset(self: animator.skia.Point, p: animator.skia.IPoint) -> None
- length(self: animator.skia.Point) float¶
- makeScaled(self: animator.skia.Point, scale: float) animator.skia.Point¶
Return a new point that is the result of scaling this point by the given scale.
- negate(self: animator.skia.Point) None¶
- normalize(self: animator.skia.Point) bool¶
- offset(self: animator.skia.Point, dx: float, dy: float) None¶
- scale(self: animator.skia.Point, scale: float) None¶
- set(self: animator.skia.Point, x: float, y: float) None¶
- setAbs(self: animator.skia.Point, pt: animator.skia.Point) None¶
- setLength(*args, **kwargs)¶
Overloaded function.
setLength(self: animator.skia.Point, length: float) -> bool
setLength(self: animator.skia.Point, x: float, y: float, length: float) -> bool
- setNormalize(self: animator.skia.Point, x: float, y: float) bool¶
- x(self: animator.skia.Point) float¶
- y(self: animator.skia.Point) float¶