# FaceMeshPoint

public class **FaceMeshPoint** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Represents a 3D point in face mesh, by index and `https://developers.google.com/android/reference/com/google/mlkit/vision/common/PointF3D`.

The index is an unique ID meaning a fixed position on face, ranging from 0 to 467.

In `https://developers.google.com/android/reference/com/google/mlkit/vision/common/PointF3D` ,
`x` and `y` are pixel location of detected face in `https://developers.google.com/android/reference/com/google/mlkit/vision/common/InputImage`.
`z` is also scaled to image size, while the origin will be somewhere in the center
of all 468 face mesh points.

### Public Method Summary

|---|---|
| int | [getIndex](https://developers.google.com/android/reference/com/google/mlkit/vision/facemesh/FaceMeshPoint#getIndex())() Gets the index of the face mesh point, ranging from 0 to 467. |
| PointF3D | [getPosition](https://developers.google.com/android/reference/com/google/mlkit/vision/facemesh/FaceMeshPoint#getPosition())() Gets a 3D point in face mesh. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public int **getIndex** ()

Gets the index of the face mesh point, ranging from 0 to 467.

For each specific point, the index is a constant value.

#### public PointF3D **getPosition** ()

Gets a 3D point in face mesh. Inside `https://developers.google.com/android/reference/com/google/mlkit/vision/common/PointF3D`,
`X` and `Y` means a 2D position in original image.

More information on the `Z` value:

- The unit of measure for the Z value is the same as X and Y.
- The smaller the Z value, the closer that landmark is to the camera.
- The Z origin is approximately at the center of all 468 face mesh points. Z value will be negative if the point is close to camera and will be positive if the point is away from the camera.