MediaRational

struct in UnityEditor.Media

Switch to Manual

Description

Rational number useful for expressing fractions precisely.

Static Variables

InvalidInvalid rational value.

Variables

denominatorFraction denominator.
inverseThe inverse of the rational number.
isNegativeWhether the rational number is negative.
isValidWhether the rational number is valid.
isZeroWhether the rational number is zero.
numeratorFraction numerator.

Constructors

MediaRationalConstructs a rational number. The version that omits the denominator sets it to 1.

Public Functions

SetSets the numerator and denominator, performing normalization.

Operators

Unknown operatorReturns the rational value expressed as a floating point value.