Struct Vector3i
3D integer vector type. This is basically the same as Index3i but
with .x.y.z member names. This makes code far more readable in many places.
Unfortunately I can't see a way to do this w/o so much duplication...we could
have .x/.y/.z accessors but that is much less efficient...
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Vector3i : IComparable<Vector3i>, IEquatable<Vector3i>
Constructors
Vector3i(Int32)
Declaration
Parameters
Type |
Name |
Description |
Int32 |
f |
|
Vector3i(Int32, Int32, Int32)
Declaration
public Vector3i(int x, int y, int z)
Parameters
Vector3i(Int32[])
Declaration
public Vector3i(int[] v2)
Parameters
Type |
Name |
Description |
Int32[] |
v2 |
|
Fields
AxisX
Declaration
public static readonly Vector3i AxisX
Field Value
AxisY
Declaration
public static readonly Vector3i AxisY
Field Value
AxisZ
Declaration
public static readonly Vector3i AxisZ
Field Value
One
Declaration
public static readonly Vector3i One
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
Zero
Declaration
public static readonly Vector3i Zero
Field Value
Properties
array
Declaration
public int[] array { get; }
Property Value
Item[Int32]
Declaration
public int this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
LengthSquared
Declaration
public int LengthSquared { get; }
Property Value
Methods
Add(Vector3i)
Declaration
public void Add(Vector3i o)
Parameters
Add(Int32)
Declaration
Parameters
Type |
Name |
Description |
Int32 |
s |
|
CompareTo(Vector3i)
Declaration
public int CompareTo(Vector3i other)
Parameters
Returns
Equals(Vector3i)
Declaration
public bool Equals(Vector3i other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Set(Vector3i)
Declaration
public void Set(Vector3i o)
Parameters
Set(Int32, Int32, Int32)
Declaration
public void Set(int fX, int fY, int fZ)
Parameters
Subtract(Vector3i)
Declaration
public void Subtract(Vector3i o)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Addition(Vector3i, Vector3i)
Declaration
public static Vector3i operator +(Vector3i v0, Vector3i v1)
Parameters
Returns
Addition(Vector3i, Int32)
Declaration
public static Vector3i operator +(Vector3i v0, int f)
Parameters
Returns
Division(Vector3i, Vector3i)
Declaration
public static Vector3i operator /(Vector3i a, Vector3i b)
Parameters
Returns
Division(Vector3i, Int32)
Declaration
public static Vector3i operator /(Vector3i v, int f)
Parameters
Returns
Division(Int32, Vector3i)
Declaration
public static Vector3i operator /(int f, Vector3i v)
Parameters
Returns
Equality(Vector3i, Vector3i)
Declaration
public static bool operator ==(Vector3i a, Vector3i b)
Parameters
Returns
Explicit(Vector3d to Vector3i)
Declaration
public static explicit operator Vector3i(Vector3d v)
Parameters
Returns
Explicit(Vector3f to Vector3i)
Declaration
public static explicit operator Vector3i(Vector3f v)
Parameters
Returns
Explicit(Vector3i to Vector3d)
Declaration
public static explicit operator Vector3d(Vector3i v)
Parameters
Returns
Explicit(Vector3i to Vector3f)
Declaration
public static explicit operator Vector3f(Vector3i v)
Parameters
Returns
Implicit(Index3i to Vector3i)
Declaration
public static implicit operator Vector3i(Index3i v)
Parameters
Returns
Implicit(Vector3i to Index3i)
Declaration
public static implicit operator Index3i(Vector3i v)
Parameters
Returns
Inequality(Vector3i, Vector3i)
Declaration
public static bool operator !=(Vector3i a, Vector3i b)
Parameters
Returns
Multiply(Vector3i, Vector3i)
Declaration
public static Vector3i operator *(Vector3i a, Vector3i b)
Parameters
Returns
Multiply(Vector3i, Int32)
Declaration
public static Vector3i operator *(Vector3i v, int f)
Parameters
Returns
Multiply(Int32, Vector3i)
Declaration
public static Vector3i operator *(int f, Vector3i v)
Parameters
Returns
Subtraction(Vector3i, Vector3i)
Declaration
public static Vector3i operator -(Vector3i v0, Vector3i v1)
Parameters
Returns
Subtraction(Vector3i, Int32)
Declaration
public static Vector3i operator -(Vector3i v0, int f)
Parameters
Returns
UnaryNegation(Vector3i)
Declaration
public static Vector3i operator -(Vector3i v)
Parameters
Returns
Implements