# What is Aspect Ratio of a Camera?

&#x20;The **aspect ratio** a camera defines the rendered image's width and height ratio using the camera.&#x20;

You can use the window's inner height and inner width to calculate aspect ratio. If you are not rendering to the entire window, you can choose a specific size for your aspect ratio that would correspond to the container of the renderer.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.xrdev.app/mixed-reality-docs/webxr-lessons/3d-on-the-web/concepts/what-is-aspect-ratio-of-a-camera.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
