Let the camera direction follow the direction of the line

I want to point the camera in A direction that can follow A line, like two points A and B, so that the camera looks at point A towards B.

const cartesian2 = ellipsoid.cartographicToCartesian(new Cesium.Cartographic(-84.0, 50, 0));
const cartesian1 = ellipsoid.cartographicToCartesian(new Cesium.Cartographic(-100.0, 30.0, 1000000.0));


const direction = new Cesium.Cartesian3(cartesian2.x - cartesian1.x, cartesian2.y - cartesian1.y, cartesian2.z - cartesian1.z);
const normalizedDirection = Cesium.Cartesian3.normalize(direction, new Cesium.Cartesian3());

const camera = scene.camera;

camera.setView({
  destination: Cesium.Cartesian3.fromDegrees(
    -100.0,
    30.0,
    1000000.0,
  ),
  orientation: {
    direction: normalizedDirection,
    up: Cesium.Cartesian3.UNIT_Y
  },
});

My code is shown as above, but it does not meet my requirements. I do not know what is wrong with the above code. Can anyone familiar with Cesium help to solve this problem?
Any help is greatly appreciated