MaskPosition

data class MaskPosition(point: String, xShift: Float, yShift: Float, scale: Float)

This object describes the position on faces where a mask should be placed by default.

Parameters

point

The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.

xShift

Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.

yShift

Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.

scale

Mask scaling coefficient. For example, 2.0 means double size.

Constructors

MaskPosition
Link copied to clipboard
common
fun MaskPosition(point: String, xShift: Float, yShift: Float, scale: Float)
The part of the face relative to which the mask should be placed.

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): Float
component3
Link copied to clipboard
common
operator fun component3(): Float
component4
Link copied to clipboard
common
operator fun component4(): Float
copy
Link copied to clipboard
common
fun copy(point: String, xShift: Float, yShift: Float, scale: Float): MaskPosition
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

point
Link copied to clipboard
common
val point: String
The part of the face relative to which the mask should be placed.
scale
Link copied to clipboard
common
val scale: Float
Mask scaling coefficient.
xShift
Link copied to clipboard
common
val xShift: Float
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right.
yShift
Link copied to clipboard
common
val yShift: Float
Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom.