Exemplo n.º 1
0
        public OrbitLocation(ILocation center, Direction startingDirection, Distance distance, radian rotationPerTick)
        {
            this.center          = center;
            this.rotationPerTick = rotationPerTick;

            this.startingAngle = startingDirection;
            this.distance      = distance;
        }
Exemplo n.º 2
0
        public OrbitLocation(ILocation center, ILocation startingPoint, radian rotationPerTick)
        {
            this.center          = center;
            this.rotationPerTick = rotationPerTick;

            startingAngle = Direction.Calculate(center, startingPoint);
            distance      = Distance.Calculate(center, startingPoint);
        }
Exemplo n.º 3
0
 public static Direction FromRadian(radian value)
 {
     return(new Direction(value));
 }
Exemplo n.º 4
0
 private Direction(radian inRadians)
 {
     this.InRadians = inRadians;
 }
Exemplo n.º 5
0
 public OrbitLocation(IBody anchor, Direction startingDirection, Distance distance, radian rotationPerTick) :
     this(anchor.Location, startingDirection, distance, rotationPerTick)
 {
 }
Exemplo n.º 6
0
 public OrbitLocation(IBody anchor, ILocation startingPoint, radian rotationPerTick) :
     this(anchor.Location, startingPoint, rotationPerTick)
 {
 }