/// /// Contours.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.camera.facedetector import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "Contours". */ @DoNotStrip @Keep data class Contours( @DoNotStrip @Keep val FACE: Array?, @DoNotStrip @Keep val LEFT_EYEBROW_TOP: Array?, @DoNotStrip @Keep val LEFT_EYEBROW_BOTTOM: Array?, @DoNotStrip @Keep val RIGHT_EYEBROW_TOP: Array?, @DoNotStrip @Keep val RIGHT_EYEBROW_BOTTOM: Array?, @DoNotStrip @Keep val LEFT_EYE: Array?, @DoNotStrip @Keep val RIGHT_EYE: Array?, @DoNotStrip @Keep val UPPER_LIP_TOP: Array?, @DoNotStrip @Keep val UPPER_LIP_BOTTOM: Array?, @DoNotStrip @Keep val LOWER_LIP_TOP: Array?, @DoNotStrip @Keep val LOWER_LIP_BOTTOM: Array?, @DoNotStrip @Keep val NOSE_BRIDGE: Array?, @DoNotStrip @Keep val NOSE_BOTTOM: Array?, @DoNotStrip @Keep val LEFT_CHEEK: Array?, @DoNotStrip @Keep val RIGHT_CHEEK: Array? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is Contours) return false return Objects.deepEquals(this.FACE, other.FACE) && Objects.deepEquals(this.LEFT_EYEBROW_TOP, other.LEFT_EYEBROW_TOP) && Objects.deepEquals(this.LEFT_EYEBROW_BOTTOM, other.LEFT_EYEBROW_BOTTOM) && Objects.deepEquals(this.RIGHT_EYEBROW_TOP, other.RIGHT_EYEBROW_TOP) && Objects.deepEquals(this.RIGHT_EYEBROW_BOTTOM, other.RIGHT_EYEBROW_BOTTOM) && Objects.deepEquals(this.LEFT_EYE, other.LEFT_EYE) && Objects.deepEquals(this.RIGHT_EYE, other.RIGHT_EYE) && Objects.deepEquals(this.UPPER_LIP_TOP, other.UPPER_LIP_TOP) && Objects.deepEquals(this.UPPER_LIP_BOTTOM, other.UPPER_LIP_BOTTOM) && Objects.deepEquals(this.LOWER_LIP_TOP, other.LOWER_LIP_TOP) && Objects.deepEquals(this.LOWER_LIP_BOTTOM, other.LOWER_LIP_BOTTOM) && Objects.deepEquals(this.NOSE_BRIDGE, other.NOSE_BRIDGE) && Objects.deepEquals(this.NOSE_BOTTOM, other.NOSE_BOTTOM) && Objects.deepEquals(this.LEFT_CHEEK, other.LEFT_CHEEK) && Objects.deepEquals(this.RIGHT_CHEEK, other.RIGHT_CHEEK) } override fun hashCode(): Int { return arrayOf( FACE, LEFT_EYEBROW_TOP, LEFT_EYEBROW_BOTTOM, RIGHT_EYEBROW_TOP, RIGHT_EYEBROW_BOTTOM, LEFT_EYE, RIGHT_EYE, UPPER_LIP_TOP, UPPER_LIP_BOTTOM, LOWER_LIP_TOP, LOWER_LIP_BOTTOM, NOSE_BRIDGE, NOSE_BOTTOM, LEFT_CHEEK, RIGHT_CHEEK ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(FACE: Array?, LEFT_EYEBROW_TOP: Array?, LEFT_EYEBROW_BOTTOM: Array?, RIGHT_EYEBROW_TOP: Array?, RIGHT_EYEBROW_BOTTOM: Array?, LEFT_EYE: Array?, RIGHT_EYE: Array?, UPPER_LIP_TOP: Array?, UPPER_LIP_BOTTOM: Array?, LOWER_LIP_TOP: Array?, LOWER_LIP_BOTTOM: Array?, NOSE_BRIDGE: Array?, NOSE_BOTTOM: Array?, LEFT_CHEEK: Array?, RIGHT_CHEEK: Array?): Contours { return Contours(FACE, LEFT_EYEBROW_TOP, LEFT_EYEBROW_BOTTOM, RIGHT_EYEBROW_TOP, RIGHT_EYEBROW_BOTTOM, LEFT_EYE, RIGHT_EYE, UPPER_LIP_TOP, UPPER_LIP_BOTTOM, LOWER_LIP_TOP, LOWER_LIP_BOTTOM, NOSE_BRIDGE, NOSE_BOTTOM, LEFT_CHEEK, RIGHT_CHEEK) } } }