# CircularRevealWidget.RevealInfo

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/circularreveal/CircularRevealWidget.java)

*** ** * ** ***


```
public class CircularRevealWidget.RevealInfo
```

<br />

*** ** * ** ***

RevealInfo holds three values for a circular reveal. The circular reveal is represented by two float coordinates for the center, and one float value for the radius.

## Summary

| ### Constants |
|---|---|
| `static final float` | `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#INVALID_RADIUS() = 3.4028235E38f` Radius value representing a lack of a circular reveal clip. |

| ### Public fields |
|---|---|
| `float` | `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#centerX()` View-local float coordinate for the centerX of the reveal circular reveal. |
| `float` | `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#centerY()` View-local float coordinate for the centerY of the reveal circular reveal. |
| `float` | `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#radius()` Float value for the radius of the reveal circular reveal, or `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#INVALID_RADIUS()`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#RevealInfo(com.google.android.material.circularreveal.CircularRevealWidget.RevealInfo)(https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo other)` |
| `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#RevealInfo(float,float,float)(float centerX, float centerY, float radius)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#isInvalid()()` Returns whether this RevealInfo has an invalid radius, representing a lack of a circular reveal clip. |
| `void` | `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#set(com.google.android.material.circularreveal.CircularRevealWidget.RevealInfo)(https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo other)` |
| `void` | `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#set(float,float,float)(float centerX, float centerY, float radius)` |

## Constants

### INVALID_RADIUS

```
public static final float INVALID_RADIUS = 3.4028235E38f
```

Radius value representing a lack of a circular reveal clip.

## Public fields

### centerX

```
public float centerX
```

View-local float coordinate for the centerX of the reveal circular reveal.

### centerY

```
public float centerY
```

View-local float coordinate for the centerY of the reveal circular reveal.

### radius

```
public float radius
```

Float value for the radius of the reveal circular reveal, or `https://developer.android.com/reference/com/google/android/material/circularreveal/CircularRevealWidget.RevealInfo#INVALID_RADIUS()`.

## Public constructors

### RevealInfo

```
public RevealInfo(CircularRevealWidget.RevealInfo other)
```

### RevealInfo

```
public RevealInfo(float centerX, float centerY, float radius)
```

## Public methods

### isInvalid

```
public boolean isInvalid()
```

Returns whether this RevealInfo has an invalid radius, representing a lack of a circular reveal clip.

### set

```
public void set(CircularRevealWidget.RevealInfo other)
```

### set

```
public void set(float centerX, float centerY, float radius)
```