# PolarTargetNode.PolarTarget

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/behavior/PolarTargetNode.kt+class:androidx.ink.brush.behavior.PolarTargetNode.PolarTarget) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***


```
public final class PolarTargetNode.PolarTarget
```

<br />

*** ** * ** ***

List of vector tip properties that can be modified by a `https://developer.android.com/reference/androidx/ink/brush/BrushBehavior`.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget#POSITION_OFFSET_ABSOLUTE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZE()` Adds the vector to the brush tip's absolute x/y position in stroke space, where the angle input is measured in radians and the magnitude input is measured in units equal to the brush size. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget#POSITION_OFFSET_RELATIVE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZE()` Adds the vector to the brush tip's forward/lateral position relative to the current direction of input travel, where the angle input is measured in radians and the magnitude input is measured in units equal to the brush size. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/Version` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget#calculateMinimumRequiredVersion()()` Returns the minimum required `https://developer.android.com/reference/androidx/ink/brush/Version` for this `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget`. |
| `boolean` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget#toString()()` |

## Public fields

### POSITION_OFFSET_ABSOLUTE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZE

```
public static final @NonNull PolarTargetNode.PolarTarget POSITION_OFFSET_ABSOLUTE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZE
```

Adds the vector to the brush tip's absolute x/y position in stroke space, where the angle input is measured in radians and the magnitude input is measured in units equal to the brush size. An angle of zero indicates an offset in the direction of the positive X-axis in stroke space; an angle of π/2 indicates the direction of the positive Y-axis in stroke space.

### POSITION_OFFSET_RELATIVE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZE

```
public static final @NonNull PolarTargetNode.PolarTarget POSITION_OFFSET_RELATIVE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZE
```

Adds the vector to the brush tip's forward/lateral position relative to the current direction of input travel, where the angle input is measured in radians and the magnitude input is measured in units equal to the brush size. An angle of zero indicates a forward offset in the current direction of input travel, while an angle of π indicates a backwards offset. Meanwhile, if the X- and Y-axes of stroke space were rotated so that the positive X-axis points in the direction of stroke travel, then an angle of π/2 would indicate a lateral offset towards the positive Y-axis, and an angle of -π/2 would indicate a lateral offset towards the negative Y-axis.

## Public methods

### calculateMinimumRequiredVersion

Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
public final @NonNull Version calculateMinimumRequiredVersion()
```

Returns the minimum required `https://developer.android.com/reference/androidx/ink/brush/Version` for this `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget`.

By default, decoding a `https://developer.android.com/reference/androidx/ink/brush/BrushFamily` containing a `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget` with a minimum required version higher than `https://developer.android.com/reference/androidx/ink/brush/Version#MAX_SUPPORTED()` will fail.

### equals

```
public boolean equals(Object other)
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```