Ejemplo n.º 1
0
 /// <summary>Get <see cref="Length"/> from <see cref="Area"/> divided by <see cref="Length"/>.</summary>
 public static Length operator /(Area area, Length length)
 {
     return(Length.FromMeters(area.SquareMeters / length.Meters));
 }
Ejemplo n.º 2
0
 /// <summary>Get <see cref="Length"/> from Square Root of <see cref="Area"/>.</summary>
 public static Length Sqrt(Area area)
 {
     return(Length.FromMeters(Math.Sqrt(area.SquareMeters)));
 }
Ejemplo n.º 3
0
        /// <summary>Get circle area from a diameter.</summary>
        public static Area FromCircleDiameter(Length diameter)
        {
            var radius = Length.FromMeters(diameter.Meters / 2d);

            return(FromCircleRadius(radius));
        }
Ejemplo n.º 4
0
 public static Length operator *(Duration duration, Speed speed)
 {
     return(Length.FromMeters(speed.MetersPerSecond * duration.Seconds));
 }
Ejemplo n.º 5
0
 public static Length operator *(TimeSpan timeSpan, Speed speed)
 {
     return(Length.FromMeters(speed.MetersPerSecond * timeSpan.TotalSeconds));
 }
Ejemplo n.º 6
0
 /// <summary>Get <see cref="Length"/> from <see cref="ReciprocalLength"/> times <see cref="ReciprocalArea"/>.</summary>
 public static Length operator /(ReciprocalLength reciprocalLength, ReciprocalArea reciprocalArea)
 {
     return(Length.FromMeters(reciprocalLength.InverseMeters / reciprocalArea.InverseSquareMeters));
 }
Ejemplo n.º 7
0
 public static Length operator /(Volume volume, Area area)
 {
     return(Length.FromMeters(volume.CubicMeters / area.SquareMeters));
 }