getPixelSizeAtPoint Method
Get the width of a pixel (a unit vector in the x direction in view coordinates) at a given point in world coordinates, returning the result in meters (world units).
This is most useful to determine how large something is in a view. In particular, in a perspective view the result of this method will be a larger number for points closer to the back of the view Frustum (that is, one pixel of the view represents more spatial area at the back of the Frustum than the front.)
getPixelSizeAtPoint(point?: Point3d): number
@returns The width of a view pixel at the supplied world point, in meters.
@note A "pixel" refers to a logical (CSS) pixel, not a device pixel.
Parameter | Type | Description |
---|---|---|
point | Point3d | The point to test, in World coordinates. If undefined, the center of the view in NPC space is used. |
Returns - number
The width of a view pixel at the supplied world point, in meters.
Defined in
Last Updated: 14 November, 2024