struct V4L2::Fract
- V4L2::Fract
- Struct
- Value
- Object
Overview
Represents a fractional value of two integers.
Defined in:
v4l2/fract.crConstructors
- .new(numerator : UInt32, denominator : UInt32)
-
.new(fract_struct : Linux::V4L2Fract)
Initializes a V4L2::Fract from a Linux::V4L2Fract struct.
Instance Method Summary
- #clone
- #copy_with(numerator _numerator = @numerator, denominator _denominator = @denominator)
- #denominator : UInt32
- #numerator : UInt32
-
#to_f : Float
Converts the fraction to a Float.
-
#to_s : String
Converts the fraction to a String.
-
#to_unsafe : Linux::V4L2Fract
Converts the fraction back into a Linux::V4L2Fract.
Constructor Detail
def self.new(fract_struct : Linux::V4L2Fract)
#
Initializes a V4L2::Fract from a Linux::V4L2Fract struct.
Instance Method Detail
def copy_with(numerator _numerator = @numerator, denominator _denominator = @denominator)
#