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