Skip to content

構造体 GcAccelerationEvent

Namespace: GameCanvas

csharp
public readonly struct GcAccelerationEvent : System.IEquatable<GcAccelerationEvent>

加速度イベント

継承元

  • System.IEquatable<GcAccelerationEvent>

フィールド

Acceleration

csharp
public readonly float3 Acceleration

加速度計の値

備考

キャンバス座標系で扱いやすいよう、Y軸, Z軸 の値をそれぞれ反転しています

DeltaTime

csharp
public readonly float DeltaTime

前回の計測からの経過時間(秒)

Null

csharp
public static readonly GcAccelerationEvent Null = default

RawAcceleration

csharp
public readonly float3 RawAcceleration

加速度計の実際の値

Time

csharp
public readonly float Time

計測時刻(秒)

メソッド

Equals(GcAccelerationEvent)

csharp
public bool Equals(GcAccelerationEvent other)

Equals(object)

csharp
public override bool Equals(object obj)

GetHashCode()

csharp
public override int GetHashCode()

ToString()

csharp
public override string ToString()

演算子

operator !=(GcAccelerationEvent, GcAccelerationEvent)

csharp
public static bool operator !=(GcAccelerationEvent lh, GcAccelerationEvent rh)

operator ==(GcAccelerationEvent, GcAccelerationEvent)

csharp
public static bool operator ==(GcAccelerationEvent lh, GcAccelerationEvent rh)

Released under the MIT License.