MediaRational

struct in UnityEditor.Media

Cambiar al Manual

Descripción

Rational number useful for expressing fractions precisely.

Variables Estáticas

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.

Constructores

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

Funciones Públicas

SetSets the numerator and denominator, performing normalization.

Operadores

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