| <html devsite="true"> |
| <head> |
| <title>AnimationVector2D</title> |
| {% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} |
| {% include "_shared/_reference-head-tags.html" %} |
| </head> |
| <body> |
| <div id="metadata-info-block"></div> |
| <h1>AnimationVector2D</h1> |
| <p> |
| <pre>public final class <a href="/reference/androidx/compose/animation/core/AnimationVector2D.html">AnimationVector2D</a> extends <a href="/reference/androidx/compose/animation/core/AnimationVector.html">AnimationVector</a></pre> |
| </p> |
| <div class="devsite-table-wrapper"> |
| <table class="jd-inheritance-table"> |
| <tbody> |
| <tr> |
| <td colspan="3"><a href="https://developer.android.com/reference/java/lang/Object.html">java.lang.Object</a></td> |
| </tr> |
| <tr> |
| <td class="jd-inheritance-space"> ↳</td> |
| <td colspan="2"><a href="/reference/androidx/compose/animation/core/AnimationVector.html">androidx.compose.animation.core.AnimationVector</a></td> |
| </tr> |
| <tr> |
| <td> </td> |
| <td class="jd-inheritance-space"> ↳</td> |
| <td colspan="1"><a href="/reference/androidx/compose/animation/core/AnimationVector2D.html">androidx.compose.animation.core.AnimationVector2D</a></td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <hr> |
| <p>This class defines a 2D vector that contains two Float values for the two dimensions.</p> |
| <h2>Summary</h2> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="100%"><h3>Public fields</h3></th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td width="40%"><code>final float</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#v1()">v1</a></code></div> |
| <p>Float value field for the first dimension of the 2D vector.</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>final float</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#v2()">v2</a></code></div> |
| <p>Float value field for the second dimension of the 2D vector.</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="100%"><h3>Public constructors</h3></th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td> |
| <div><code><a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#AnimationVector2D(kotlin.Float,kotlin.Float)">AnimationVector2D</a>(float v1, float v2)</code></div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="100%"><h3>Public methods</h3></th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td width="40%"><code>boolean</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#equals(kotlin.Any)">equals</a>(<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a> other)</code></div> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>int</code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#hashCode()">hashCode</a>()</code></div> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/String.html">String</a></code></td> |
| <td> |
| <div><code><a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#toString()">toString</a>()</code></div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <h2>Public fields</h2> |
| <div><a name="getV1()"></a><a name="setV1()"></a><a name="getV1--"></a><a name="setV1--"></a> |
| <h3 class="api-name" id="v1()">v1</h3> |
| <pre class="api-signature no-pretty-print">public final float <a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#v1()">v1</a></pre> |
| <p>Float value field for the first dimension of the 2D vector.</p> |
| </div> |
| <div><a name="getV2()"></a><a name="setV2()"></a><a name="getV2--"></a><a name="setV2--"></a> |
| <h3 class="api-name" id="v2()">v2</h3> |
| <pre class="api-signature no-pretty-print">public final float <a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#v2()">v2</a></pre> |
| <p>Float value field for the second dimension of the 2D vector.</p> |
| </div> |
| <h2>Public constructors</h2> |
| <div><a name="AnimationVector2D(kotlin.Float, kotlin.Float)"></a><a name="AnimationVector2D-kotlin.Float-kotlin.Float-"></a><a name="animationvector2d"></a> |
| <h3 class="api-name" id="AnimationVector2D(kotlin.Float,kotlin.Float)">AnimationVector2D</h3> |
| <pre class="api-signature no-pretty-print">public <a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#AnimationVector2D(kotlin.Float,kotlin.Float)">AnimationVector2D</a>(float v1, float v2)</pre> |
| <div class="devsite-table-wrapper"> |
| <table class="responsive"> |
| <thead> |
| <tr> |
| <th colspan="100%">Parameters</th> |
| </tr> |
| </thead> |
| <tbody class="list"> |
| <tr> |
| <td width="40%"><code>float v1</code></td> |
| <td> |
| <p>initial value to set on the first dimension</p> |
| </td> |
| </tr> |
| <tr> |
| <td width="40%"><code>float v2</code></td> |
| <td> |
| <p>initial value to set on the second dimension</p> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| <h2>Public methods</h2> |
| <div><a name="equals-kotlin.Any-"></a><a name="equals"></a> |
| <h3 class="api-name" id="equals(kotlin.Any)">equals</h3> |
| <pre class="api-signature no-pretty-print">public boolean <a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#equals(kotlin.Any)">equals</a>(<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a> other)</pre> |
| </div> |
| <div><a name="hashCode--"></a><a name="hashcode"></a> |
| <h3 class="api-name" id="hashCode()">hashCode</h3> |
| <pre class="api-signature no-pretty-print">public int <a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#hashCode()">hashCode</a>()</pre> |
| </div> |
| <div><a name="toString--"></a><a name="tostring"></a> |
| <h3 class="api-name" id="toString()">toString</h3> |
| <pre class="api-signature no-pretty-print">public @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/java/lang/String.html">String</a> <a href="/reference/androidx/compose/animation/core/AnimationVector2D.html#toString()">toString</a>()</pre> |
| </div> |
| </body> |
| </html> |