Version: 2023.1
言語: 日本語

MediaRational

struct in UnityEditor.Media

マニュアルに切り替える

説明

Rational number useful for expressing fractions precisely.

Static 変数

InvalidInvalid rational value.

変数

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.

コンストラクタ

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

Public 関数

SetSets the numerator and denominator, performing normalization.

Operator

doubleReturns the rational value expressed as a floating point value.