Function to set camera pos to borders

Godot Version

godot4

Question

is there a function that alighns the camera to its borders?
example i set the borders but i want to set the camera in code so i can get the cam pos before the next frame

nrm i clicked the smoothed option under the border settings
image