# PointFEvaluator

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/android/animation/PointFEvaluator#pubctors)\|[Methods](https://developer.android.com/reference/android/animation/PointFEvaluator#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/animation/PointFEvaluator#inhmethods)  

# PointFEvaluator

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/animation/PointFEvaluator "View this page in Kotlin")\|Java

`
public


class
PointFEvaluator
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


implements

`[TypeEvaluator](https://developer.android.com/reference/android/animation/TypeEvaluator)`<`[PointF](https://developer.android.com/reference/android/graphics/PointF)`>


`

|---|-----------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.animation.PointFEvaluator |

<br />

*** ** * ** ***

This evaluator can be used to perform type interpolation between`PointF`values.

## Summary

|                                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                                   ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[PointFEvaluator](https://developer.android.com/reference/android/animation/PointFEvaluator#PointFEvaluator())`() ` Construct a PointFEvaluator that returns a new PointF on every evaluate call.                                                                                                                                                                                                                                                                                                                     |
| ` `[PointFEvaluator](https://developer.android.com/reference/android/animation/PointFEvaluator#PointFEvaluator(android.graphics.PointF))`(`[PointF](https://developer.android.com/reference/android/graphics/PointF)` reuse) ` Constructs a PointFEvaluator that modifies and returns`reuse`in[evaluate(float, android.graphics.PointF, android.graphics.PointF)](https://developer.android.com/reference/android/animation/PointFEvaluator#evaluate(float,%20android.graphics.PointF,%20android.graphics.PointF))calls. |

|                                                                                                                                                                                                                                                                                                  ### Public methods                                                                                                                                                                                                                                                                                                   ||
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[PointF](https://developer.android.com/reference/android/graphics/PointF) | ` `[evaluate](https://developer.android.com/reference/android/animation/PointFEvaluator#evaluate(float,%20android.graphics.PointF,%20android.graphics.PointF))`(float fraction, `[PointF](https://developer.android.com/reference/android/graphics/PointF)` startValue, `[PointF](https://developer.android.com/reference/android/graphics/PointF)` endValue) ` This function returns the result of linearly interpolating the start and end PointF values, with`fraction`representing the proportion between the start and end values. |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||
| From interface` `[android.animation.TypeEvaluator](https://developer.android.com/reference/android/animation/TypeEvaluator)` ` |---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[PointF](https://developer.android.com/reference/android/graphics/PointF) | ` `[evaluate](https://developer.android.com/reference/android/animation/TypeEvaluator#evaluate(float,%20T,%20T))`(float fraction, `[PointF](https://developer.android.com/reference/android/graphics/PointF)` startValue, `[PointF](https://developer.android.com/reference/android/graphics/PointF)` endValue) ` This function returns the result of linearly interpolating the start and end values, with`fraction`representing the proportion between the start and end values. | ||

## Public constructors

### PointFEvaluator

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public PointFEvaluator ()
```

Construct a PointFEvaluator that returns a new PointF on every evaluate call. To avoid creating an object for each evaluate call,[PointFEvaluator.PointFEvaluator(android.graphics.PointF)](https://developer.android.com/reference/android/animation/PointFEvaluator#PointFEvaluator(android.graphics.PointF))should be used whenever possible.

<br />

### PointFEvaluator

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public PointFEvaluator (PointF reuse)
```

Constructs a PointFEvaluator that modifies and returns`reuse`in[evaluate(float, android.graphics.PointF, android.graphics.PointF)](https://developer.android.com/reference/android/animation/PointFEvaluator#evaluate(float,%20android.graphics.PointF,%20android.graphics.PointF))calls. The value returned from[evaluate(float, android.graphics.PointF, android.graphics.PointF)](https://developer.android.com/reference/android/animation/PointFEvaluator#evaluate(float,%20android.graphics.PointF,%20android.graphics.PointF))should not be cached because it will change over time as the object is reused on each call.

<br />

|                                 Parameters                                  ||
|---------|--------------------------------------------------------------------|
| `reuse` | `PointF`: A PointF to be modified and returned by evaluate. <br /> |

## Public methods

### evaluate

Added in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public PointF evaluate (float fraction, 
                PointF startValue, 
                PointF endValue)
```

This function returns the result of linearly interpolating the start and end PointF values, with`fraction`representing the proportion between the start and end values. The calculation is a simple parametric calculation on each of the separate components in the PointF objects (x, y).

If[PointFEvaluator(android.graphics.PointF)](https://developer.android.com/reference/android/animation/PointFEvaluator#PointFEvaluator(android.graphics.PointF))was used to construct this PointFEvaluator, the object returned will be the`reuse`passed into the constructor.

<br />

<br />

|                                    Parameters                                     ||
|--------------|---------------------------------------------------------------------|
| `fraction`   | `float`: The fraction from the starting to the ending values <br /> |
| `startValue` | `PointF`: The start PointF <br />                                   |
| `endValue`   | `PointF`: The end PointF <br />                                     |

|                                                                                 Returns                                                                                  ||
|---------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [PointF](https://developer.android.com/reference/android/graphics/PointF) | A linear interpolation between the start and end values, given the`fraction`parameter. <br /> |