/// /// Landmarks.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 "Landmarks". */ @DoNotStrip @Keep data class Landmarks( @DoNotStrip @Keep val LEFT_CHEEK: Point?, @DoNotStrip @Keep val LEFT_EAR: Point?, @DoNotStrip @Keep val LEFT_EYE: Point?, @DoNotStrip @Keep val MOUTH_BOTTOM: Point?, @DoNotStrip @Keep val MOUTH_LEFT: Point?, @DoNotStrip @Keep val MOUTH_RIGHT: Point?, @DoNotStrip @Keep val NOSE_BASE: Point?, @DoNotStrip @Keep val RIGHT_CHEEK: Point?, @DoNotStrip @Keep val RIGHT_EAR: Point?, @DoNotStrip @Keep val RIGHT_EYE: Point? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is Landmarks) return false return Objects.deepEquals(this.LEFT_CHEEK, other.LEFT_CHEEK) && Objects.deepEquals(this.LEFT_EAR, other.LEFT_EAR) && Objects.deepEquals(this.LEFT_EYE, other.LEFT_EYE) && Objects.deepEquals(this.MOUTH_BOTTOM, other.MOUTH_BOTTOM) && Objects.deepEquals(this.MOUTH_LEFT, other.MOUTH_LEFT) && Objects.deepEquals(this.MOUTH_RIGHT, other.MOUTH_RIGHT) && Objects.deepEquals(this.NOSE_BASE, other.NOSE_BASE) && Objects.deepEquals(this.RIGHT_CHEEK, other.RIGHT_CHEEK) && Objects.deepEquals(this.RIGHT_EAR, other.RIGHT_EAR) && Objects.deepEquals(this.RIGHT_EYE, other.RIGHT_EYE) } override fun hashCode(): Int { return arrayOf( LEFT_CHEEK, LEFT_EAR, LEFT_EYE, MOUTH_BOTTOM, MOUTH_LEFT, MOUTH_RIGHT, NOSE_BASE, RIGHT_CHEEK, RIGHT_EAR, RIGHT_EYE ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(LEFT_CHEEK: Point?, LEFT_EAR: Point?, LEFT_EYE: Point?, MOUTH_BOTTOM: Point?, MOUTH_LEFT: Point?, MOUTH_RIGHT: Point?, NOSE_BASE: Point?, RIGHT_CHEEK: Point?, RIGHT_EAR: Point?, RIGHT_EYE: Point?): Landmarks { return Landmarks(LEFT_CHEEK, LEFT_EAR, LEFT_EYE, MOUTH_BOTTOM, MOUTH_LEFT, MOUTH_RIGHT, NOSE_BASE, RIGHT_CHEEK, RIGHT_EAR, RIGHT_EYE) } } }