PolarTargetNode.PolarTarget


public final class PolarTargetNode.PolarTarget


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

Summary

Public fields

static final @NonNull 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.

static final @NonNull 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.

Public methods

boolean
equals(Object other)
int
@NonNull String

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

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public @NonNull String toString()