Namespace: Lens.Conversions

Conversion between screen units (e.g. pixels) and real-world untis (e.g. inches). Automatically defines the CSS variables lens-dpmm (pixels per millimeter), lens-dpcm (pixels per centimeter), and lens-dpi (pixels per inch). Note that these are approximate: they are based on the width and height of the whole screen in pixels and millimeters, and may not be valid for non-flat surfaces. See Coordinate for transforming exact coordinates.

Static Properties

Lens.Conversions.dpcm: Number ARCore/conversions.js, line 32

Pixels (dots) per centimeter

Lens.Conversions.dpi: Number ARCore/conversions.js, line 38

Pixels (dots) per inch

Lens.Conversions.dpmm: Number ARCore/conversions.js, line 26

Pixels (dots) per millimeter