animator.skia.Point

class animator.skia.Point

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: animator.skia.Point, ipoint: animator.skia.IPoint) -> None

    Create a Point from an IPoint.

    param t

    IPoint to convert.

  2. __init__(self: animator.skia.Point, t: tuple) -> None

    Create a Point from a tuple of two floats.

    param t

    Tuple of two floats.

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

fX

fY

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 Length(x: float, y: float) float
static Make(x: float, y: float) animator.skia.Point
static Normalize(vec: animator.skia.Point) float
static Offset(*args, **kwargs)

Overloaded function.

  1. Offset(points: List[animator.skia.Point], offset: animator.skia.Point) -> List[animator.skia.Point]

  2. 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.

  1. iset(self: animator.skia.Point, x: int, y: int) -> None

  2. 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.

Parameters

scale – factor to multiply Point by

Returns

a new Point scaled by 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.

  1. setLength(self: animator.skia.Point, length: float) -> bool

  2. 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