Parameter2D.findKeypointAndNormal

Find the keypoint index of the given position, as well as its normal.

class Parameter2D
@nogc
vec2i
findKeypointAndNormal
(
vec2 pos
,
out vec2 norm
)

Parameters

pos vec2

A position along our keypoints. Must be within min & max.

norm vec2

The given position, normalized within its keypoint.

Return Value

Type: vec2i

The index of the keypoint the given position falls on.

Meta