Exemplo n.º 1
0
 public void Reverse()
 {
     directionX    = -directionX;
     directionZ    = -directionZ;
     globalToLocal = null;
     localToGlobal = null;
 }
Exemplo n.º 2
0
 public CoordSys(IJsonReadStruct data)
 {
     location      = data.GetValue <GeoPoint>();
     directionX    = data.GetValue <GeoVector>();
     directionY    = data.GetValue <GeoVector>();
     directionZ    = directionX ^ directionY;
     globalToLocal = null;
     localToGlobal = null;
 }
Exemplo n.º 3
0
 private CoordSys(SerializationInfo info, StreamingContext context)
 {
     location      = (GeoPoint)info.GetValue("Location", typeof(GeoPoint));
     directionX    = (GeoVector)info.GetValue("DirectionX", typeof(GeoVector));
     directionY    = (GeoVector)info.GetValue("DirectionY", typeof(GeoVector));
     directionZ    = directionX ^ directionY;
     globalToLocal = null;
     localToGlobal = null;
 }
Exemplo n.º 4
0
 public void Modify(ModOp m)
 {
     location   = m * location;
     directionX = m * directionX;
     directionX.Norm();
     directionZ = m * directionZ;
     directionZ.Norm();
     directionY    = directionZ ^ directionX;
     directionZ    = DirectionX ^ DirectionY;
     globalToLocal = null;
     localToGlobal = null;
 }
Exemplo n.º 5
0
        public CoordSys(GeoPoint Location, GeoVector DirectionX, GeoVector DirectionY)
        {
            location   = Location;
            directionX = DirectionX;
            directionY = DirectionY;
            directionZ = DirectionX ^ DirectionY;
            directionY = directionZ ^ directionX;
            try
            {
                directionX.Norm();
                directionY.Norm();
                directionZ.Norm();
            }
            catch (GeoVectorException e)
            {
                throw new CoordSysException(CoordSysException.tExceptionType.ConstructorFailed);
            }

            globalToLocal = null;
            localToGlobal = null;
        }