public void Reverse() { directionX = -directionX; directionZ = -directionZ; globalToLocal = null; localToGlobal = null; }
public CoordSys(IJsonReadStruct data) { location = data.GetValue <GeoPoint>(); directionX = data.GetValue <GeoVector>(); directionY = data.GetValue <GeoVector>(); directionZ = directionX ^ directionY; globalToLocal = null; localToGlobal = null; }
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; }
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; }
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; }