Ejemplo 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);
            }

            ProjectionInformation pi = obj as ProjectionInformation;

            return
                (FieldOfView == pi.FieldOfView &&
                 Aspect == pi.Aspect &&
                 NearestZ == pi.NearestZ &&
                 FarthestZ == pi.FarthestZ);
        }
Ejemplo n.º 2
0
 internal Camera()
 {
     ProjectionInformation = new ProjectionInformation();
     ViewInformation       = new ViewInformation();
 }
Ejemplo n.º 3
0
 // override object.GetHashCode
 public override int GetHashCode()
 {
     return(ProjectionInformation.GetHashCode() * ViewInformation.GetHashCode());
 }
Ejemplo n.º 4
0
 internal Camera()
 {
     ProjectionInformation = new ProjectionInformation();
     ViewInformation = new ViewInformation();
 }