Back to class index
| Frustum::AspectRatioSyntaxfloat Frustum::AspectRatio() const; [4 lines of code]Returns the aspect ratio of the view rectangle on the near plane. The aspect ratio is the ratio of the width of the viewing rectangle to its height. This can also be computed by the expression horizontalFov / verticalFov. To produce a proper non-stretched image when rendering, this aspect ratio should match the aspect ratio of the actual render target (e.g. 4:3, 16:9 or 16:10 in full screen mode). See Also |