Skip to content

Add Operators for the relationship Volume = VolumeFlow/TimeSpan (or Duration) #376

@gojanpaolo

Description

@gojanpaolo

e.g.

public partial struct Volume
{
        //...
        public static VolumeFlow operator /(Volume volume, TimeSpan timeSpan)
        {
               return VolumeFlow.FromCubicMetersPerSecond(volume.CubicMeters / timeSpan.Seconds);
        }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions