OHyMoS.NET Class Library

OhTime メンバ

OhTime 概要

静的 パブリック フィールド

NEGLIGIBLY_SMALL_TIME Negligibly small time amount whose default value is 0.0001 sec. When the absolute value of an amount of time is less than this value, the time is regarded as negligibly small.

無視できる時間。絶対値がこの値より小さい時間は、無視できる くらい小さいとします。10000 分の1秒にします。
ZERO OhTime object with sec = 0 and frac = 0. sec も frac も 0 の OhTime オブジェクト。

静的 パブリック メソッド

addオーバーロード。 Returns an OhTime object by adding two OhTime objects aTa and aTb.

二つの OhTime オブジェクト aTa と aTb を足して OhTime オブジェクト を作っ て返します。
adjustオーバーロード。 Returns an OhTime object whose time value is equal to aSec + aFrac. aFrac need not to be greater than or equal to -0.5 and less than 0.5.

aSec + aFrac に等しい時間を持つ OhTime オブジェクトを返しま す。引数の aFrac は、-0.5 以上、0.5 未満でなくても構いませ ん。このメソッドの中(OhTimeコンストラクタ内)で調整されます。

mulオーバーロード。 Returns the product of an OhTime object aTime and an integer aI.

OhTime オブジェクト aTime と整数 aI の積を OhTime オブジェ クトとして返します。
subオーバーロード。 Returns an OhTime object by subtracting an OhTime object aTb from an OhTime object aTa.

OhTime オブジェクト aTa と OhTime オブジェクト aTb の差である OhTime オブジェクトを返します。

パブリック コンストラクタ

OhTime オーバーロード。 OhTime クラスの新しいインスタンスを初期化します。

パブリック プロパティ

Frac Set frac (fraction part of time) to aFrac.

端数部分 frac を取得・設定します。
Sec Set sec (integer part of time) to aSec.

整数部分 sec を取得・設定します。

パブリック メソッド

addオーバーロード。 Add the current OhTime object with aTime seconds.

現在の OhTime オブジェクトに、aTime 秒加えます。
adjustオーバーロード。 Adjust sec and frac so that they have compatible signs and the absolute value of frac is less than 1.

secfrac の符号がつじつまがあっていて、端数 frac が -0.5 以上、0.5 未満になるように調整します。
Clone Returns a shallow copy of the current OhTime object
copy Copies the field varibles of the source OhTime object into those of the current OhTime object.

引数で指定された IOhTimeImmutable オブジェクトのフィールド変 数を現在の OhTime オブジェクトのフィールド変数に複写します。
equals Check whether the time difference between the current time point object and anObj is less than anEps. 現在の OhTimePointImmutable オブジェクトと anObj が 表わす時刻との時間差が anEps より小さいか (true)、そ うでないか (false) を返します。

Equals Check whether the current IOhTimeImmutable object is equal to anObj. 引数で指定されたオブジェクトが、IOhTimeImmutable 型 (または そのサブクラス) のオブジェクトであって、表わしている時刻が 当該のオブジェクトと同じであるか (true) 異なるか (false) を 検査します。
mulオーバーロード。 Multiplies the current OhTime object by aI.

現在の OhTime オブジェクトを aI 倍します。
subオーバーロード。 Subtract aTime seconds fromt the current OhTime object.

現在の OhTime オブジェクトから、aTime 秒引きます。
toDouble Returns the double value which is equal to sec + frac.

現在の OhTime オブジェクトに対応する時間の double 値を返し ます。
ToString Returns the string expression of the current object.

オブジェクトの String 表現を返します。

参照

OhTime クラス | OhymosNet 名前空間