# ArcMotion

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:transition:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/transition/ArcMotion#pubctors)\|[Methods](https://developer.android.com/reference/android/support/transition/ArcMotion#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/transition/ArcMotion#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/transition/ArcMotion#)  

# ArcMotion

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


class
ArcMotion
`  
`


``

extends `[PathMotion](https://developer.android.com/reference/android/support/transition/PathMotion)`


``


`

|---|---|--------------------------------------|
| java.lang.Object                           |||
| ↳ | [android.support.transition.PathMotion](https://developer.android.com/reference/android/support/transition/PathMotion) ||
|   | ↳ | android.support.transition.ArcMotion |

<br />

*** ** * ** ***

A PathMotion that generates a curved path along an arc on an imaginary circle containing the two points. If the horizontal distance between the points is less than the vertical distance, then the circle's center point will be horizontally aligned with the end point. If the vertical distance is less than the horizontal distance then the circle's center point will be vertically aligned with the end point.

When the two points are near horizontal or vertical, the curve of the motion will be small as the center of the circle will be far from both points. To force curvature of the path,[setMinimumHorizontalAngle(float)](https://developer.android.com/reference/android/support/transition/ArcMotion#setMinimumHorizontalAngle(float))and[setMinimumVerticalAngle(float)](https://developer.android.com/reference/android/support/transition/ArcMotion#setMinimumVerticalAngle(float))may be used to set the minimum angle of the arc between two points.

This may be used in XML as an element inside a transition.  

    <changeBounds>
       <arcMotion android:minimumHorizontalAngle="15"
                  android:minimumVerticalAngle="0"
                  android:maximumAngle="90"/>
     </changeBounds>
     
<br />

## Summary

|                                                                                                                                                                   ### Public constructors                                                                                                                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[ArcMotion](https://developer.android.com/reference/android/support/transition/ArcMotion#ArcMotion())`() `                                                                                                                                                                                                                                            |
| ` `[ArcMotion](https://developer.android.com/reference/android/support/transition/ArcMotion#ArcMotion(android.content.Context, android.util.AttributeSet))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs) ` |

|                                                                                                                                                                    ### Public methods                                                                                                                                                                     ||
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` float`                                                                      | ` `[getMaximumAngle](https://developer.android.com/reference/android/support/transition/ArcMotion#getMaximumAngle())`() ` Returns the maximum arc along the circle between two points.                                                                                     |
| ` float`                                                                      | ` `[getMinimumHorizontalAngle](https://developer.android.com/reference/android/support/transition/ArcMotion#getMinimumHorizontalAngle())`() ` Returns the minimum arc along the circle between two points aligned near horizontally.                                       |
| ` float`                                                                      | ` `[getMinimumVerticalAngle](https://developer.android.com/reference/android/support/transition/ArcMotion#getMinimumVerticalAngle())`() ` Returns the minimum arc along the circle between two points aligned near vertically.                                             |
| ` `[Path](https://developer.android.com/reference/android/graphics/Path.html) | ` `[getPath](https://developer.android.com/reference/android/support/transition/ArcMotion#getPath(float, float, float, float))`(float startX, float startY, float endX, float endY) ` Provide a Path to interpolate between two points`(startX, startY)`and`(endX, endY)`. |
| ` void`                                                                       | ` `[setMaximumAngle](https://developer.android.com/reference/android/support/transition/ArcMotion#setMaximumAngle(float))`(float angleInDegrees) ` Sets the maximum arc along the circle between two points.                                                               |
| ` void`                                                                       | ` `[setMinimumHorizontalAngle](https://developer.android.com/reference/android/support/transition/ArcMotion#setMinimumHorizontalAngle(float))`(float angleInDegrees) ` Sets the minimum arc along the circle between two points aligned near horizontally.                 |
| ` void`                                                                       | ` `[setMinimumVerticalAngle](https://developer.android.com/reference/android/support/transition/ArcMotion#setMinimumVerticalAngle(float))`(float angleInDegrees) ` Sets the minimum arc along the circle between two points aligned near vertically.                       |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/transition/ArcMotion#)From class` `[android.support.transition.PathMotion](https://developer.android.com/reference/android/support/transition/PathMotion)` ` |----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[Path](https://developer.android.com/reference/android/graphics/Path.html) | ` `[getPath](https://developer.android.com/reference/android/support/transition/PathMotion#getPath(float, float, float, float))`(float startX, float startY, float endX, float endY) ` Provide a Path to interpolate between two points`(startX, startY)`and`(endX, endY)`. | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/transition/ArcMotion#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### ArcMotion

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ArcMotion ()
```

<br />

<br />

### ArcMotion

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
ArcMotion (Context context, 
                AttributeSet attrs)
```

<br />

<br />

|            Parameters            ||
|-----------|-----------------------|
| `context` | `Context` <br />      |
| `attrs`   | `AttributeSet` <br /> |

## Public methods

### getMaximumAngle

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getMaximumAngle ()
```

Returns the maximum arc along the circle between two points. When start and end points have close to equal x and y differences, the curve between them is large. This forces the curved path to have an arc of at most the given angle.

The default value is 70 degrees.

<br />

<br />

|                                                    Returns                                                     ||
|---------|-------------------------------------------------------------------------------------------------------|
| `float` | The maximum angle of the arc on a circle describing the Path between the start and end points. <br /> |

### getMinimumHorizontalAngle

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getMinimumHorizontalAngle ()
```

Returns the minimum arc along the circle between two points aligned near horizontally. When start and end points are close to horizontal, the calculated center point of the circle will be far from both points, giving a near straight path between the points. By setting a minimum angle, this forces the center point to be closer and give an exaggerated curve to the path.

The default value is 0.

<br />

<br />

|                                            Returns                                             ||
|---------|---------------------------------------------------------------------------------------|
| `float` | The minimum arc along the circle between two points aligned near horizontally. <br /> |

### getMinimumVerticalAngle

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getMinimumVerticalAngle ()
```

Returns the minimum arc along the circle between two points aligned near vertically. When start and end points are close to vertical, the calculated center point of the circle will be far from both points, giving a near straight path between the points. By setting a minimum angle, this forces the center point to be closer and give an exaggerated curve to the path.

The default value is 0.

<br />

<br />

|                                                           Returns                                                            ||
|---------|---------------------------------------------------------------------------------------------------------------------|
| `float` | The minimum angle of the arc on a circle describing the Path between two nearly vertically-separated points. <br /> |

### getPath

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Path getPath (float startX, 
                float startY, 
                float endX, 
                float endY)
```

Provide a Path to interpolate between two points`(startX, startY)`and`(endX, endY)`. This allows controlled curved motion along two dimensions.

<br />

|                            Parameters                             ||
|----------|---------------------------------------------------------|
| `startX` | `float`: The x coordinate of the starting point. <br /> |
| `startY` | `float`: The y coordinate of the starting point. <br /> |
| `endX`   | `float`: The x coordinate of the ending point. <br />   |
| `endY`   | `float`: The y coordinate of the ending point. <br />   |

|                                                                                                                                                                          Returns                                                                                                                                                                          ||
|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Path](https://developer.android.com/reference/android/graphics/Path.html) | A Path along which the points should be interpolated. The returned Path must start at point`(startX, startY)`, typically using[moveTo(float, float)](https://developer.android.com/reference/android/graphics/Path.html#moveTo(float, float))and end at`(endX, endY)`. <br /> |

### setMaximumAngle

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setMaximumAngle (float angleInDegrees)
```

Sets the maximum arc along the circle between two points. When start and end points have close to equal x and y differences, the curve between them is large. This forces the curved path to have an arc of at most the given angle.

The default value is 70 degrees.

<br />

<br />

|                                                            Parameters                                                            ||
|------------------|----------------------------------------------------------------------------------------------------------------|
| `angleInDegrees` | `float`: The maximum angle of the arc on a circle describing the Path between the start and end points. <br /> |

### setMinimumHorizontalAngle

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setMinimumHorizontalAngle (float angleInDegrees)
```

Sets the minimum arc along the circle between two points aligned near horizontally. When start and end points are close to horizontal, the calculated center point of the circle will be far from both points, giving a near straight path between the points. By setting a minimum angle, this forces the center point to be closer and give an exaggerated curve to the path.

The default value is 0.

<br />

<br />

|                                                                    Parameters                                                                    ||
|------------------|--------------------------------------------------------------------------------------------------------------------------------|
| `angleInDegrees` | `float`: The minimum angle of the arc on a circle describing the Path between two nearly horizontally-separated points. <br /> |

### setMinimumVerticalAngle

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setMinimumVerticalAngle (float angleInDegrees)
```

Sets the minimum arc along the circle between two points aligned near vertically. When start and end points are close to vertical, the calculated center point of the circle will be far from both points, giving a near straight path between the points. By setting a minimum angle, this forces the center point to be closer and give an exaggerated curve to the path.

The default value is 0.

<br />

<br />

|                                                                   Parameters                                                                   ||
|------------------|------------------------------------------------------------------------------------------------------------------------------|
| `angleInDegrees` | `float`: The minimum angle of the arc on a circle describing the Path between two nearly vertically-separated points. <br /> |

-

  ## Interfaces

  - [Transition.TransitionListener](https://developer.android.com/reference/android/support/transition/Transition.TransitionListener)
-

  ## Classes

  - [ArcMotion](https://developer.android.com/reference/android/support/transition/ArcMotion)
  - [AutoTransition](https://developer.android.com/reference/android/support/transition/AutoTransition)
  - [ChangeBounds](https://developer.android.com/reference/android/support/transition/ChangeBounds)
  - [ChangeClipBounds](https://developer.android.com/reference/android/support/transition/ChangeClipBounds)
  - [ChangeImageTransform](https://developer.android.com/reference/android/support/transition/ChangeImageTransform)
  - [ChangeScroll](https://developer.android.com/reference/android/support/transition/ChangeScroll)
  - [ChangeTransform](https://developer.android.com/reference/android/support/transition/ChangeTransform)
  - [CircularPropagation](https://developer.android.com/reference/android/support/transition/CircularPropagation)
  - [Explode](https://developer.android.com/reference/android/support/transition/Explode)
  - [Fade](https://developer.android.com/reference/android/support/transition/Fade)
  - [PathMotion](https://developer.android.com/reference/android/support/transition/PathMotion)
  - [PatternPathMotion](https://developer.android.com/reference/android/support/transition/PatternPathMotion)
  - [R](https://developer.android.com/reference/android/support/transition/R)
  - [R.attr](https://developer.android.com/reference/android/support/transition/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/transition/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/transition/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/transition/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/transition/R.drawable)
  - [R.id](https://developer.android.com/reference/android/support/transition/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/transition/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/transition/R.layout)
  - [R.string](https://developer.android.com/reference/android/support/transition/R.string)
  - [R.style](https://developer.android.com/reference/android/support/transition/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/transition/R.styleable)
  - [Scene](https://developer.android.com/reference/android/support/transition/Scene)
  - [SidePropagation](https://developer.android.com/reference/android/support/transition/SidePropagation)
  - [Slide](https://developer.android.com/reference/android/support/transition/Slide)
  - [Transition](https://developer.android.com/reference/android/support/transition/Transition)
  - [Transition.EpicenterCallback](https://developer.android.com/reference/android/support/transition/Transition.EpicenterCallback)
  - [TransitionInflater](https://developer.android.com/reference/android/support/transition/TransitionInflater)
  - [TransitionListenerAdapter](https://developer.android.com/reference/android/support/transition/TransitionListenerAdapter)
  - [TransitionManager](https://developer.android.com/reference/android/support/transition/TransitionManager)
  - [TransitionPropagation](https://developer.android.com/reference/android/support/transition/TransitionPropagation)
  - [TransitionSet](https://developer.android.com/reference/android/support/transition/TransitionSet)
  - [TransitionValues](https://developer.android.com/reference/android/support/transition/TransitionValues)
  - [Visibility](https://developer.android.com/reference/android/support/transition/Visibility)
  - [VisibilityPropagation](https://developer.android.com/reference/android/support/transition/VisibilityPropagation)