class Position extends Message

A 3D position in the image, used primarily for Face detection landmarks.

A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image.

Protobuf type Google\Cloud\Vision\V1\Position

Methods

__construct()

No description

float
getX()

X coordinate.

setX(float $var)

X coordinate.

float
getY()

Y coordinate.

setY(float $var)

Y coordinate.

float
getZ()

Z coordinate (or depth).

setZ(float $var)

Z coordinate (or depth).

Details

at line 39
__construct()

at line 50
float getX()

X coordinate.

Generated from protobuf field float x = 1;

Return Value

float

at line 61
setX(float $var)

X coordinate.

Generated from protobuf field float x = 1;

Parameters

float $var

at line 73
float getY()

Y coordinate.

Generated from protobuf field float y = 2;

Return Value

float

at line 84
setY(float $var)

Y coordinate.

Generated from protobuf field float y = 2;

Parameters

float $var

at line 96
float getZ()

Z coordinate (or depth).

Generated from protobuf field float z = 3;

Return Value

float

at line 107
setZ(float $var)

Z coordinate (or depth).

Generated from protobuf field float z = 3;

Parameters

float $var