displace_about_center
Vector3 displace_about_center(const Vector3 &position, const Vector3 ¢er, const Vector3 &displacement) noexceptParameters
| Name | Type |
|---|---|
position | const Vector3 & |
center | const Vector3 & |
displacement | const Vector3 & |
Returns
Vector3
The moved position; position plus displacement when there is no radial to swing about (the camera exactly at center) or no tangential part to swing.
Description
Moves a camera by a displacement while keeping its distance from a centre.
See also
engine/foundation/core/include/README.md

