コード例 #1
0
        public OrbitLocation(ILocation center, Direction startingDirection, Distance distance, radian rotationPerTick)
        {
            this.center          = center;
            this.rotationPerTick = rotationPerTick;

            this.startingAngle = startingDirection;
            this.distance      = distance;
        }
コード例 #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);
        }
コード例 #3
0
ファイル: Direction.cs プロジェクト: genveir/SpaceDing
 public static Direction FromRadian(radian value)
 {
     return(new Direction(value));
 }
コード例 #4
0
ファイル: Direction.cs プロジェクト: genveir/SpaceDing
 private Direction(radian inRadians)
 {
     this.InRadians = inRadians;
 }
コード例 #5
0
 public OrbitLocation(IBody anchor, Direction startingDirection, Distance distance, radian rotationPerTick) :
     this(anchor.Location, startingDirection, distance, rotationPerTick)
 {
 }
コード例 #6
0
 public OrbitLocation(IBody anchor, ILocation startingPoint, radian rotationPerTick) :
     this(anchor.Location, startingPoint, rotationPerTick)
 {
 }