ETcVnExtremePointDirection

Offers search directions for the extreme point.

Syntax

Definition:

TYPE ETcVnExtremePointDirection :
(
    TCVN_EPD_TOP_LEFT      := 0,
    TCVN_EPD_TOP_MEDIAN    := 1,
    TCVN_EPD_TOP_RIGHT     := 2,
    TCVN_EPD_BOTTOM_LEFT   := 3,
    TCVN_EPD_BOTTOM_MEDIAN := 4,
    TCVN_EPD_BOTTOM_RIGHT  := 5,
    TCVN_EPD_LEFT_TOP      := 6,
    TCVN_EPD_LEFT_MEDIAN   := 7,
    TCVN_EPD_LEFT_BOTTOM   := 8,
    TCVN_EPD_RIGHT_TOP     := 9,
    TCVN_EPD_RIGHT_MEDIAN  := 10,
    TCVN_EPD_RIGHT_BOTTOM  := 11
)DINT;
END_TYPE

Values

Name

Description

TCVN_EPD_TOP_LEFT

Find the topmost point (min y, take left one if more than 1).

TCVN_EPD_TOP_MEDIAN

Find the topmost point (min y, take median one if more than 1).

TCVN_EPD_TOP_RIGHT

Find the topmost point (min y, take right one if more than 1).

TCVN_EPD_BOTTOM_LEFT

Find the bottommost point (max y, take left one if more than 1).

TCVN_EPD_BOTTOM_MEDIAN

Find the bottommost point (max y, take median one if more than 1).

TCVN_EPD_BOTTOM_RIGHT

Find the bottommost point (max y, take right one if more than 1).

TCVN_EPD_LEFT_TOP

Find the leftmost point (min x, take top one if more than 1).

TCVN_EPD_LEFT_MEDIAN

Find the leftmost point (min x, take median one if more than 1).

TCVN_EPD_LEFT_BOTTOM

Find the leftmost point (min x, take bottom one if more than 1).

TCVN_EPD_RIGHT_TOP

Find the rightmost point (max x, take top one if more than 1).

TCVN_EPD_RIGHT_MEDIAN

Find the rightmost point (max x, take median one if more than 1).

TCVN_EPD_RIGHT_BOTTOM

Find the rightmost point (max x, take bottom one if more than 1).

Related functions