Esempio n. 1
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            //
            // See the full list of guidelines at
            //   http://go.microsoft.com/fwlink/?LinkID=85237
            // and also the guidance for operator== at
            //   http://go.microsoft.com/fwlink/?LinkId=85238
            //

            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }
            else if (Object.ReferenceEquals(obj, this))
            {
                return(true);
            }

            ViewInformation vi = obj as ViewInformation;

            return
                (vi.LookAt.Equals(LookAt) &&
                 vi.Position.Equals(Position) &&
                 vi.UpVector.Equals(UpVector));
        }
Esempio n. 2
0
 internal Camera()
 {
     ProjectionInformation = new ProjectionInformation();
     ViewInformation       = new ViewInformation();
 }
Esempio n. 3
0
 internal Camera()
 {
     ProjectionInformation = new ProjectionInformation();
     ViewInformation = new ViewInformation();
 }