AVMath
public enum AVMath
Undocumented
-
Rescale a integer with specified rounding.
The operation is mathematically equivalent to
a * b / c, but writing that directly can overflow, and does not support different rounding methods.Declaration
Swift
public static func rescale<T: BinaryInteger>( _ a: T, _ b: T, _ c: T, _ rnd: AVRounding = .inf ) -> Int64 -
Rescale a integer by 2 rational numbers with specified rounding.
The operation is mathematically equivalent to
a * bq / cq.Declaration
Swift
public static func rescale<T: BinaryInteger>( _ a: T, _ b: AVRational, _ c: AVRational, _ rnd: AVRounding = .inf ) -> Int64
View on GitHub
Install in Dash
AVMath Enumeration Reference