AcTools.Render.Base.Cameras.CameraOrbit.LookAt C# (CSharp) Méthode

LookAt() public méthode

public LookAt ( Vector3 pos, Vector3 target, Vector3 up ) : void
pos Vector3
target Vector3
up Vector3
Résultat void
        public override void LookAt(Vector3 pos, Vector3 target, Vector3 up) {
            Target = target;
            Position = pos;
            Look = Vector3.Normalize(target - pos);
            Right = Vector3.Normalize(Vector3.Cross(up, Look));
            Up = Vector3.Cross(Look, Right);
            Radius = (target - pos).Length();
        }