Point class

A point with x, y, and optional z coordinates.

Used to represent landmarks with optional depth information. The x and y coordinates are in absolute pixel positions relative to the original image. The z coordinate represents relative depth (scale-dependent) when 3D computation is enabled.

When z is null, this represents a 2D point. When z is non-null, it represents a 3D point with depth information.

Constructors

Point(double x, double y, [double? z])
Creates a point with the given x, y, and optional z coordinates.
const
Point.fromMap(Map<String, dynamic> map)
Creates a point from a map (isolate deserialization).
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
is3D bool
Whether this point has depth information (z-coordinate).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x double
The x-coordinate in absolute pixels.
final
y double
The y-coordinate in absolute pixels.
final
z double?
The z-coordinate representing relative depth, or null for 2D points.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this point to a map for isolate serialization.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override