AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Unity.Int3 Struct Reference

3D integer class - operates similarly to Unity's Vector3D More...

Inheritance diagram for HoloToolkit.Unity.Int3:

Public Member Functions

 Int3 (int x, int y, int z)
 
 Int3 (int x, int y)
 
override int GetHashCode ()
 
float Magnitude (Int3 v)
 
int SqrMagnitude (Int3 v)
 
bool Equals (Int3 other)
 
override bool Equals (object value)
 
override string ToString ()
 
string ToString (IFormatProvider formatProvider)
 
string ToString (string format, IFormatProvider formatProvider)
 

Static Public Member Functions

static operator Vector3 (Int3 v)
 
static operator Vector2 (Int3 v)
 
static Int3 Scale (Int3 l, Int3 r)
 
static int Dot (Int3 l, Int3 r)
 
static int DotOne (Int3 v)
 
static Int3 Cross (Int3 l, Int3 r)
 
static Int3 Min (Int3 l, Int3 r)
 
static Int3 Max (Int3 l, Int3 r)
 
static Int3 Clamp (Int3 v, Int3 min, Int3 max)
 
static Int3 ClosestPowerOfTwo (Int3 v)
 
static int CubicToLinearIndex (Int3 v, Int3 size)
 
static Int3 LinearToCubicIndex (int v, Int3 size)
 
static Int3 operator+ (Int3 l, Int3 r)
 
static Int3 operator- (Int3 l, Int3 r)
 
static Int3 operator- (Int3 v)
 
static Int3 operator* (Int3 v, int d)
 
static Int3 operator* (int d, Int3 v)
 
static Int3 operator/ (Int3 v, int d)
 
static bool operator== (Int3 l, Int3 r)
 
static bool operator!= (Int3 l, Int3 r)
 

Public Attributes

int x
 
int y
 
int z
 

Static Public Attributes

static readonly Int3 zero = new Int3(0, 0, 0)
 
static readonly Int3 one = new Int3(1, 1, 1)
 
static readonly Int3 forward = new Int3(0, 0, 1)
 
static readonly Int3 back = new Int3(0, 0, -1)
 
static readonly Int3 up = new Int3(0, 1, 0)
 
static readonly Int3 down = new Int3(0, -1, 0)
 
static readonly Int3 left = new Int3(-1, 0, 0)
 
static readonly Int3 right = new Int3(1, 0, 0)
 

Properties

int this[int index] [get, set]
 
float magnitude [get]
 
int sqrMagnitude [get]
 
int dotOne [get]
 

Detailed Description

3D integer class - operates similarly to Unity's Vector3D

Definition at line 16 of file Int3.cs.

Constructor & Destructor Documentation

§ Int3() [1/2]

HoloToolkit.Unity.Int3.Int3 ( int  x,
int  y,
int  z 
)

Definition at line 32 of file Int3.cs.

§ Int3() [2/2]

HoloToolkit.Unity.Int3.Int3 ( int  x,
int  y 
)

Definition at line 39 of file Int3.cs.

Member Function Documentation

§ Clamp()

static Int3 HoloToolkit.Unity.Int3.Clamp ( Int3  v,
Int3  min,
Int3  max 
)
static

Definition at line 142 of file Int3.cs.

§ ClosestPowerOfTwo()

static Int3 HoloToolkit.Unity.Int3.ClosestPowerOfTwo ( Int3  v)
static

Definition at line 149 of file Int3.cs.

§ Cross()

static Int3 HoloToolkit.Unity.Int3.Cross ( Int3  l,
Int3  r 
)
static

Definition at line 125 of file Int3.cs.

§ CubicToLinearIndex()

static int HoloToolkit.Unity.Int3.CubicToLinearIndex ( Int3  v,
Int3  size 
)
static

Definition at line 154 of file Int3.cs.

§ Dot()

static int HoloToolkit.Unity.Int3.Dot ( Int3  l,
Int3  r 
)
static

Definition at line 115 of file Int3.cs.

§ DotOne()

static int HoloToolkit.Unity.Int3.DotOne ( Int3  v)
static

Definition at line 120 of file Int3.cs.

§ Equals() [1/2]

bool HoloToolkit.Unity.Int3.Equals ( Int3  other)

Definition at line 202 of file Int3.cs.

§ Equals() [2/2]

override bool HoloToolkit.Unity.Int3.Equals ( object  value)

Definition at line 217 of file Int3.cs.

§ GetHashCode()

override int HoloToolkit.Unity.Int3.GetHashCode ( )

Definition at line 46 of file Int3.cs.

§ LinearToCubicIndex()

static Int3 HoloToolkit.Unity.Int3.LinearToCubicIndex ( int  v,
Int3  size 
)
static

Definition at line 161 of file Int3.cs.

§ Magnitude()

float HoloToolkit.Unity.Int3.Magnitude ( Int3  v)

Definition at line 100 of file Int3.cs.

§ Max()

static Int3 HoloToolkit.Unity.Int3.Max ( Int3  l,
Int3  r 
)
static

Definition at line 137 of file Int3.cs.

§ Min()

static Int3 HoloToolkit.Unity.Int3.Min ( Int3  l,
Int3  r 
)
static

Definition at line 132 of file Int3.cs.

§ operator Vector2()

static HoloToolkit.Unity.Int3.operator Vector2 ( Int3  v)
explicitstatic

Definition at line 78 of file Int3.cs.

§ operator Vector3()

static HoloToolkit.Unity.Int3.operator Vector3 ( Int3  v)
explicitstatic

Definition at line 73 of file Int3.cs.

§ operator!=()

static bool HoloToolkit.Unity.Int3.operator!= ( Int3  l,
Int3  r 
)
static

Definition at line 212 of file Int3.cs.

§ operator*() [1/2]

static Int3 HoloToolkit.Unity.Int3.operator* ( Int3  v,
int  d 
)
static

Definition at line 185 of file Int3.cs.

§ operator*() [2/2]

static Int3 HoloToolkit.Unity.Int3.operator* ( int  d,
Int3  v 
)
static

Definition at line 190 of file Int3.cs.

§ operator+()

static Int3 HoloToolkit.Unity.Int3.operator+ ( Int3  l,
Int3  r 
)
static

Definition at line 170 of file Int3.cs.

§ operator-() [1/2]

static Int3 HoloToolkit.Unity.Int3.operator- ( Int3  l,
Int3  r 
)
static

Definition at line 175 of file Int3.cs.

§ operator-() [2/2]

static Int3 HoloToolkit.Unity.Int3.operator- ( Int3  v)
static

Definition at line 180 of file Int3.cs.

§ operator/()

static Int3 HoloToolkit.Unity.Int3.operator/ ( Int3  v,
int  d 
)
static

Definition at line 195 of file Int3.cs.

§ operator==()

static bool HoloToolkit.Unity.Int3.operator== ( Int3  l,
Int3  r 
)
static

Definition at line 207 of file Int3.cs.

§ Scale()

static Int3 HoloToolkit.Unity.Int3.Scale ( Int3  l,
Int3  r 
)
static

Definition at line 110 of file Int3.cs.

§ SqrMagnitude()

int HoloToolkit.Unity.Int3.SqrMagnitude ( Int3  v)

Definition at line 105 of file Int3.cs.

§ ToString() [1/3]

override string HoloToolkit.Unity.Int3.ToString ( )

Definition at line 224 of file Int3.cs.

§ ToString() [2/3]

string HoloToolkit.Unity.Int3.ToString ( IFormatProvider  formatProvider)

Definition at line 229 of file Int3.cs.

§ ToString() [3/3]

string HoloToolkit.Unity.Int3.ToString ( string  format,
IFormatProvider  formatProvider 
)

Definition at line 234 of file Int3.cs.

Member Data Documentation

§ back

readonly Int3 HoloToolkit.Unity.Int3.back = new Int3(0, 0, -1)
static

Definition at line 22 of file Int3.cs.

§ down

readonly Int3 HoloToolkit.Unity.Int3.down = new Int3(0, -1, 0)
static

Definition at line 24 of file Int3.cs.

§ forward

readonly Int3 HoloToolkit.Unity.Int3.forward = new Int3(0, 0, 1)
static

Definition at line 21 of file Int3.cs.

§ left

readonly Int3 HoloToolkit.Unity.Int3.left = new Int3(-1, 0, 0)
static

Definition at line 25 of file Int3.cs.

§ one

readonly Int3 HoloToolkit.Unity.Int3.one = new Int3(1, 1, 1)
static

Definition at line 19 of file Int3.cs.

§ right

readonly Int3 HoloToolkit.Unity.Int3.right = new Int3(1, 0, 0)
static

Definition at line 26 of file Int3.cs.

§ up

readonly Int3 HoloToolkit.Unity.Int3.up = new Int3(0, 1, 0)
static

Definition at line 23 of file Int3.cs.

§ x

int HoloToolkit.Unity.Int3.x

Definition at line 28 of file Int3.cs.

§ y

int HoloToolkit.Unity.Int3.y

Definition at line 29 of file Int3.cs.

§ z

int HoloToolkit.Unity.Int3.z

Definition at line 30 of file Int3.cs.

§ zero

readonly Int3 HoloToolkit.Unity.Int3.zero = new Int3(0, 0, 0)
static

Definition at line 18 of file Int3.cs.

Property Documentation

§ dotOne

int HoloToolkit.Unity.Int3.dotOne
get

Definition at line 96 of file Int3.cs.

§ magnitude

float HoloToolkit.Unity.Int3.magnitude
get

Definition at line 86 of file Int3.cs.

§ sqrMagnitude

int HoloToolkit.Unity.Int3.sqrMagnitude
get

Definition at line 91 of file Int3.cs.

§ this[int index]

int HoloToolkit.Unity.Int3.this[int index]
getset

Definition at line 55 of file Int3.cs.


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