This is a Mutable version of Cubic, used mostly for performance critical paths so we can avoid creating new Cubics

This is used in Morph.forEachCubic, reusing a MutableCubic instance to avoid creating new Cubics.

Summary

Public constructors

Cmn

Public functions

Unit
interpolate(c1: Cubic, c2: Cubic, progress: Float)
Cmn
Unit
Cmn

Inherited functions

From androidx.graphics.shapes.Cubic
operator Cubic
div(x: Float)

Operator overload to enable dividing Cubics by a scalar value x, like "c0 / x"

Cmn
operator Cubic
div(x: Int)

Operator overload to enable dividing Cubics by a scalar value x, like "c0 / x"

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
operator Cubic
plus(o: Cubic)

Operator overload to enable adding Cubic objects together, like "c0 + c1"

Cmn
Cubic

Utility function to reverse the control/anchor points for this curve.

Cmn
Pair<CubicCubic>

Returns two Cubics, created by splitting this curve at the given distance of t between the original starting and ending anchor points.

Cmn
operator Cubic

Operator overload to enable multiplying Cubics by a scalar value x, like "c0 * x"

Cmn
operator Cubic
times(x: Int)

Operator overload to enable multiplying Cubics by an Int scalar value x, like "c0 * x"

Cmn
open String
Cmn
Cubic

Transforms the points in this Cubic with the given PointTransformer and returns a new Cubic

Cmn

Inherited properties

From androidx.graphics.shapes.Cubic
Float

The first anchor point x coordinate

Cmn
Float

The first anchor point y coordinate

Cmn
Float

The second anchor point x coordinate

Cmn
Float

The second anchor point y coordinate

Cmn
Float

The first control point x coordinate

Cmn
Float

The first control point y coordinate

Cmn
Float

The second control point x coordinate

Cmn
Float

The second control point y coordinate

Cmn

Public constructors

MutableCubic

MutableCubic()

Public functions

interpolate

fun interpolate(c1: Cubic, c2: Cubic, progress: Float): Unit

transform

fun transform(f: PointTransformer): Unit