# PolarTargetNode

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) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***


```
public final class PolarTargetNode extends TerminalNode
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/androidx/ink/brush/behavior/Node) |||
|   | ↳ | [androidx.ink.brush.behavior.TerminalNode](https://developer.android.com/reference/androidx/ink/brush/behavior/TerminalNode) ||
|   |   | ↳ | [androidx.ink.brush.behavior.PolarTargetNode](https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode) |

*** ** * ** ***

A `https://developer.android.com/reference/androidx/ink/brush/behavior/TerminalNode` that consumes two inputs, an angle and a magnitude, to affect a vector brush tip property.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget` List of vector tip properties that can be modified by a `https://developer.android.com/reference/androidx/ink/brush/BrushBehavior`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#PolarTargetNode(androidx.ink.brush.behavior.PolarTargetNode.PolarTarget,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget target, float angleRangeStart, float angleRangeEnd, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode angleInput, float magnitudeRangeStart, float magnitudeRangeEnd, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode magnitudeInput )` Creates a `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode` that consumes two inputs, an angle and a magnitude, to affect a vector brush tip property. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#getAngleInput()()` The input node that produces the value used to affect the angle of the target vector property. |
| `final float` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#getAngleRangeEnd()()` The end of the angle range for the target property. |
| `final float` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#getAngleRangeStart()()` The start of the angle range for the target property. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#getMagnitudeInput()()` The input node that produces the value used to affect the magnitude of the target vector property. |
| `final float` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#getMagnitudeRangeEnd()()` The end of the magnitude range for the target property. |
| `final float` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#getMagnitudeRangeStart()()` The start of the magnitude range for the target property. |
| `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#getTarget()()` The vector brush tip property to affect. |
| `int` | `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#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#toString()()` |

### Inherited methods

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/androidx/ink/brush/behavior/Node) `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/Node#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/Node`.
`final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode>` `https://developer.android.com/reference/androidx/ink/brush/behavior/Node#getInputs()()`

The ordered list of inputs that this node directly depends on.

## Public constructors

### PolarTargetNode

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

```
public PolarTargetNode(
    @NonNull PolarTargetNode.PolarTarget target,
    float angleRangeStart,
    float angleRangeEnd,
    @NonNull ValueNode angleInput,
    float magnitudeRangeStart,
    float magnitudeRangeEnd,
    @NonNull ValueNode magnitudeInput
)
```

Creates a `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode` that consumes two inputs, an angle and a magnitude, to affect a vector brush tip property.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode.PolarTarget target` | vector brush tip property to affect |
| `float angleRangeStart` | start of the angle range for the target property. Must be finite and distinct from `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#(androidx.ink.brush.behavior.PolarTargetNode.PolarTarget,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `float angleRangeEnd` | end of the angle range for the target property. Must be finite and distinct from `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#(androidx.ink.brush.behavior.PolarTargetNode.PolarTarget,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode angleInput` | input node that produces the value used to affect the angle of the target vector property |
| `float magnitudeRangeStart` | start of the magnitude range for the target property. Must be finite and distinct from `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#(androidx.ink.brush.behavior.PolarTargetNode.PolarTarget,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `float magnitudeRangeEnd` | end of the magnitude range for the target property. Must be finite and distinct from `https://developer.android.com/reference/androidx/ink/brush/behavior/PolarTargetNode#(androidx.ink.brush.behavior.PolarTargetNode.PolarTarget,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode,kotlin.Float,kotlin.Float,androidx.ink.brush.behavior.ValueNode)` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ValueNode magnitudeInput` | input node that produces the value used to affect the magnitude of the target vector property |

## Public methods

### equals

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

### getAngleInput

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

```
public final @NonNull ValueNode getAngleInput()
```

The input node that produces the value used to affect the angle of the target vector property.

### getAngleRangeEnd

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

```
public final float getAngleRangeEnd()
```

The end of the angle range for the target property.

### getAngleRangeStart

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

```
public final float getAngleRangeStart()
```

The start of the angle range for the target property.

### getMagnitudeInput

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

```
public final @NonNull ValueNode getMagnitudeInput()
```

The input node that produces the value used to affect the magnitude of the target vector property.

### getMagnitudeRangeEnd

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

```
public final float getMagnitudeRangeEnd()
```

The end of the magnitude range for the target property.

### getMagnitudeRangeStart

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

```
public final float getMagnitudeRangeStart()
```

The start of the magnitude range for the target property.

### getTarget

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

```
public final @NonNull PolarTargetNode.PolarTarget getTarget()
```

The vector brush tip property to affect.

### hashCode

```
public int hashCode()
```

### toString

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