how do I get the size of aspect2d?

How do I find out the dimensions of aspect2d? I know by default it is (-1.3, -1), (1.3, 1) but that can change if a different aspect ratio is set up in the config file.

on the showbase, there’s a function for this


aspectRatio=base.getAspectRatio()
ySize=1
xSize=ySize*aspectRatio