PolarTargetNode.PolarTarget



List of vector tip properties that can be modified by a androidx.ink.brush.BrushBehavior.

Summary

Public companion properties

PolarTargetNode.PolarTarget

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.

Cmn
PolarTargetNode.PolarTarget

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.

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public companion properties

POSITION_OFFSET_ABSOLUTE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZE

val POSITION_OFFSET_ABSOLUTE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZEPolarTargetNode.PolarTarget

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

val POSITION_OFFSET_RELATIVE_IN_RADIANS_AND_MULTIPLES_OF_BRUSH_SIZEPolarTargetNode.PolarTarget

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 functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String