# Photon Fusion 1.1.2

Angle Struct Reference

A Networked fusion type for degrees. This can be used with the NetworkedAttribute, in RPCs, or in NetworkInput structs. More...

Inherits INetworkStruct, and IEquatable< Angle >.

## Public Member Functions

void Clamp (Angle min, Angle max)
Clamps the current value to the supplied min-max range. More...

bool Equals (Angle other)

override bool Equals (object obj)

override int GetHashCode ()

override string ToString ()

## Static Public Member Functions

static Angle Min (Angle a, Angle b)
Returns the smaller of two supplied angles. More...

static Angle Max (Angle a, Angle b)
Returns the larger of two supplied angles. More...

static Angle Lerp (Angle a, Angle b, float t)
Lerps between two angle values. More...

static Angle Clamp (Angle value, Angle min, Angle max)
Returns a the value, clamped to the min-max range. 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 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 operator float (Angle value)

static operator double (Angle value)

static implicit operator Angle (double value)

static implicit operator Angle (float value)

static implicit operator Angle (int value)

int _value

## Static Public Attributes

const int SIZE = 4

const int ACCURACY = 10000

const int DECIMALS = 4

const int _360 = 360 * ACCURACY

## Detailed Description

A Networked fusion type for degrees. This can be used with the NetworkedAttribute, in RPCs, or in NetworkInput structs.

## ◆ Clamp() [1/2]

 void Clamp ( Angle min, Angle max )

Clamps the current value to the supplied min-max range.

## ◆ Clamp() [2/2]

 static Angle Clamp ( Angle value, Angle min, Angle max )
static

Returns a the value, clamped to the min-max range.

## ◆ Lerp()

 static Angle Lerp ( Angle a, Angle b, float t )
static

Lerps between two angle values.

## ◆ Max()

 static Angle Max ( Angle a, Angle b )
static

Returns the larger of two supplied angles.

## ◆ Min()

 static Angle Min ( Angle a, Angle b )
static

Returns the smaller of two supplied angles.