Stay organized with collections
Save and categorize content based on your preferences.
public final class MutableCubic extends Cubic
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 methods |
final void |
|
final void |
|
Inherited methods |
From androidx.graphics.shapes.Cubic
final @NonNull Cubic |
Operator overload to enable dividing Cubics by a scalar value x, like "c0 / x"
|
final @NonNull Cubic |
Operator overload to enable dividing Cubics by a scalar value x, like "c0 / x"
|
boolean |
|
final float |
The first anchor point x coordinate
|
final float |
The first anchor point y coordinate
|
final float |
The second anchor point x coordinate
|
final float |
The second anchor point y coordinate
|
final float |
The first control point x coordinate
|
final float |
The first control point y coordinate
|
final float |
The second control point x coordinate
|
final float |
The second control point y coordinate
|
int |
|
final @NonNull Cubic |
Operator overload to enable adding Cubic objects together, like "c0 + c1"
|
final @NonNull Cubic |
Utility function to reverse the control/anchor points for this curve.
|
final @NonNull Pair<@NonNull Cubic, @NonNull Cubic> |
Returns two Cubics, created by splitting this curve at the given distance of t between the original starting and ending anchor points.
|
final @NonNull Cubic |
Operator overload to enable multiplying Cubics by a scalar value x, like "c0 * x"
|
final @NonNull Cubic |
Operator overload to enable multiplying Cubics by an Int scalar value x, like "c0 * x"
|
@NonNull String |
|
final @NonNull Cubic |
Transforms the points in this Cubic with the given PointTransformer and returns a new Cubic
|
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]