VR Tunnelling Pro
Plug-and-Play VR Comfort
Sigtrap.VrTunnellingPro.Angle Struct Reference

Description

Expresses a float as an angle.

Public Member Functions

 Angle (float a)
 
 Angle (Angle a)
 
float ToFloat (AngleType type)
 Get angle expressed as an AngleType. More...
 
override string ToString ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static float ToAngle (float a, AngleType type)
 Convert a float to an angle expressed as an AngleType. More...
 
static bool operator< (Angle a, Angle b)
 
static bool operator> (Angle a, Angle b)
 
static bool operator<= (Angle a, Angle b)
 
static bool operator>= (Angle a, Angle b)
 
static Angle operator+ (Angle a, Angle b)
 
static Angle operator- (Angle a, Angle b)
 
static bool operator== (Angle a, Angle b)
 
static bool operator!= (Angle a, Angle b)
 
static bool operator< (Angle a, float b)
 
static bool operator> (Angle a, float b)
 
static bool operator<= (Angle a, float b)
 
static bool operator>= (Angle a, float b)
 
static Angle operator+ (Angle a, float b)
 
static Angle operator- (Angle a, float b)
 
static Angle operator* (Angle a, float b)
 
static Angle operator/ (Angle a, float b)
 
static bool operator< (float a, Angle b)
 
static bool operator> (float a, Angle b)
 
static bool operator<= (float a, Angle b)
 
static bool operator>= (float a, Angle b)
 
static Angle operator+ (float a, Angle b)
 
static Angle operator- (float a, Angle b)
 
static implicit operator Angle (float f)
 

Public Attributes

float _angle
 

Properties

float angle [get]
 Angle expressed from 0 to 360. More...
 
float acute [get]
 Angle expressed from -180 to +180. More...
 
float reflex [get]
 Angle expressed from ±(180 to 360). More...
 

Public Types

enum  AngleType { AngleType.ANGLE, AngleType.ACUTE, AngleType.REFLEX }
 

Member Enumeration Documentation

◆ AngleType

Enumerator
ANGLE 

Angle expressed from 0 to 360.

E.g. -10 => 350

E.g. 10 => 10

E.g. 580 => -140

ACUTE 

Angle expressed from -180 to +180.

E.g. -10 => -10

E.g. 10 => 10

E.g. 580 => 220

REFLEX 

Angle expressed from ±(180 to 360).

E.g. -10 => 350

E.g. 10 => -350

E.g. 580 => 220

Member Function Documentation

◆ ToAngle()

static float Sigtrap.VrTunnellingPro.Angle.ToAngle ( float  a,
AngleType  type 
)
inlinestatic

Convert a float to an angle expressed as an AngleType.

◆ ToFloat()

float Sigtrap.VrTunnellingPro.Angle.ToFloat ( AngleType  type)
inline

Get angle expressed as an AngleType.

Property Documentation

◆ acute

float Sigtrap.VrTunnellingPro.Angle.acute
get

Angle expressed from -180 to +180.

E.g. -10 => -10

E.g. 10 => 10

E.g. 580 => 220

◆ angle

float Sigtrap.VrTunnellingPro.Angle.angle
get

Angle expressed from 0 to 360.

E.g. -10 => 350

E.g. 10 => 10

E.g. 580 => -140

◆ reflex

float Sigtrap.VrTunnellingPro.Angle.reflex
get

Angle expressed from ±(180 to 360).

E.g. -10 => 350

E.g. 10 => -350

E.g. 580 => 220


The documentation for this struct was generated from the following file: