Version: 2022.2
言語: 日本語

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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961