Class Vector3Int
A pure .NET implemenation of Unity's Vector3Int.
See Unity's docs for more details.
Inheritance
System.Object
Vector3Int
Assembly: Sylves.dll
Syntax
public sealed class Vector3Int : ValueType
Constructors
Vector3Int(Int32, Int32, Int32)
Declaration
public Vector3Int(int x, int y, int z)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
z |
|
Properties
down
Declaration
public static Vector3Int down { get; }
Property Value
Item[Int32]
Declaration
public int this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Int32 |
|
left
Declaration
public static Vector3Int left { get; }
Property Value
magnitude
Declaration
public float magnitude { get; }
Property Value
Type |
Description |
System.Single |
|
one
Declaration
public static Vector3Int one { get; }
Property Value
right
Declaration
public static Vector3Int right { get; }
Property Value
sqrMagnitude
Declaration
public int sqrMagnitude { get; }
Property Value
Type |
Description |
System.Int32 |
|
up
Declaration
public static Vector3Int up { get; }
Property Value
x
Declaration
public int x { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
y
Declaration
public int y { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
z
Declaration
public int z { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
zero
Declaration
public static Vector3Int zero { get; }
Property Value
Methods
CeilToInt(Vector3)
Declaration
public static Vector3Int CeilToInt(Vector3 v)
Parameters
Returns
Clamp(Vector3Int, Vector3Int)
Declaration
public void Clamp(Vector3Int min, Vector3Int max)
Parameters
Distance(Vector3Int, Vector3Int)
Declaration
public static float Distance(Vector3Int a, Vector3Int b)
Parameters
Returns
Type |
Description |
System.Single |
|
Equals(Vector3Int)
Declaration
public bool Equals(Vector3Int other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
FloorToInt(Vector3)
Declaration
public static Vector3Int FloorToInt(Vector3 v)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Max(Vector3Int, Vector3Int)
Declaration
public static Vector3Int Max(Vector3Int lhs, Vector3Int rhs)
Parameters
Returns
Min(Vector3Int, Vector3Int)
Declaration
public static Vector3Int Min(Vector3Int lhs, Vector3Int rhs)
Parameters
Returns
RoundToInt(Vector3)
Declaration
public static Vector3Int RoundToInt(Vector3 v)
Parameters
Returns
Scale(Vector3Int)
Declaration
public void Scale(Vector3Int scale)
Parameters
Scale(Vector3Int, Vector3Int)
Declaration
public static Vector3Int Scale(Vector3Int a, Vector3Int b)
Parameters
Returns
Set(Int32, Int32, Int32)
Declaration
public void Set(int x, int y, int z)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
z |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
ToString(String)
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
System.String |
format |
|
Returns
Type |
Description |
System.String |
|
Operators
Addition(Vector3Int, Vector3Int)
Declaration
public static Vector3Int operator +(Vector3Int a, Vector3Int b)
Parameters
Returns
Division(Vector3Int, Int32)
Declaration
public static Vector3Int operator /(Vector3Int a, int b)
Parameters
Returns
Equality(Vector3Int, Vector3Int)
Declaration
public static bool operator ==(Vector3Int lhs, Vector3Int rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit(Vector3Int to Vector3)
Declaration
public static implicit operator Vector3(Vector3Int v)
Parameters
Returns
Inequality(Vector3Int, Vector3Int)
Declaration
public static bool operator !=(Vector3Int lhs, Vector3Int rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(Vector3Int, Vector3Int)
Declaration
public static Vector3Int operator *(Vector3Int a, Vector3Int b)
Parameters
Returns
Multiply(Vector3Int, Int32)
Declaration
public static Vector3Int operator *(Vector3Int a, int b)
Parameters
Returns
Multiply(Int32, Vector3Int)
Declaration
public static Vector3Int operator *(int a, Vector3Int b)
Parameters
Returns
Subtraction(Vector3Int, Vector3Int)
Declaration
public static Vector3Int operator -(Vector3Int a, Vector3Int b)
Parameters
Returns
UnaryNegation(Vector3Int)
Declaration
public static Vector3Int operator -(Vector3Int a)
Parameters
Returns
Implements
System.IEquatable<>