Exemple #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));
 }
Exemple #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)));
 }
Exemple #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));
        }
Exemple #4
0
 public static Length operator *(Duration duration, Speed speed)
 {
     return(Length.FromMeters(speed.MetersPerSecond * duration.Seconds));
 }
Exemple #5
0
 public static Length operator *(TimeSpan timeSpan, Speed speed)
 {
     return(Length.FromMeters(speed.MetersPerSecond * timeSpan.TotalSeconds));
 }
 /// <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));
 }
Exemple #7
0
 public static Length operator /(Volume volume, Area area)
 {
     return(Length.FromMeters(volume.CubicMeters / area.SquareMeters));
 }