AngeliA
Search Results for

    Show / Hide Table of Contents

    Struct Int3

    3D vector with intager data

    Implements
    IEquatable<Int3>

    Constructors

    Int3(int, int)

    Declaration
    public Int3(int x, int y)

    Int3(int, int, int)

    Declaration
    public Int3(int x, int y, int z)

    Fields

    Back

    Declaration
    public static readonly Int3 Back

    Down

    Declaration
    public static readonly Int3 Down

    Forward

    Declaration
    public static readonly Int3 Forward

    Left

    Declaration
    public static readonly Int3 Left

    One

    Declaration
    public static readonly Int3 One

    Right

    Declaration
    public static readonly Int3 Right

    Up

    Declaration
    public static readonly Int3 Up

    Zero

    Declaration
    public static readonly Int3 Zero

    x

    Declaration
    public int x

    y

    Declaration
    public int y

    z

    Declaration
    public int z

    Properties

    this[int]

    Get int data inside with given index. (0 means x, 1 means y, 2 means z)

    Declaration
    public int this[int index] { readonly get; set; }

    Magnitude

    Length of this vector

    Declaration
    public readonly float Magnitude { get; }

    SqrMagnitude

    Square length of this vector

    Declaration
    public readonly int SqrMagnitude { get; }

    Methods

    Distance(Int3, Int3)

    Distance between two given position

    Declaration
    public static float Distance(Int3 a, Int3 b)

    Equals(Int3)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public readonly bool Equals(Int3 other)
    Parameters
    Type Name Description
    Int3 other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override readonly bool Equals(object other)
    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    Set(int, int, int)

    Declaration
    public void Set(int x, int y, int z)

    Shift(int, int, int)

    Move position by given amount

    Declaration
    public readonly Int3 Shift(int x, int y, int z = 0)

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override readonly string ToString()
    Returns
    Type Description
    string

    The fully qualified type name.

    Overrides
    ValueType.ToString()

    Operators

    operator +(Int3, Int3)

    Declaration
    public static Int3 operator +(Int3 a, Int3 b)

    operator /(Int3, int)

    Declaration
    public static Int3 operator /(Int3 a, int b)

    operator ==(Int3, Int3)

    Declaration
    public static bool operator ==(Int3 lhs, Int3 rhs)

    explicit operator Int2(Int3)

    Declaration
    public static explicit operator Int2(Int3 v)

    implicit operator Float3(Int3)

    Declaration
    public static implicit operator Float3(Int3 v)

    operator !=(Int3, Int3)

    Declaration
    public static bool operator !=(Int3 lhs, Int3 rhs)

    operator *(Int3, Int3)

    Declaration
    public static Int3 operator *(Int3 a, Int3 b)

    operator *(Int3, int)

    Declaration
    public static Int3 operator *(Int3 a, int b)

    operator *(int, Int3)

    Declaration
    public static Int3 operator *(int a, Int3 b)

    operator -(Int3, Int3)

    Declaration
    public static Int3 operator -(Int3 a, Int3 b)

    operator -(Int3)

    Declaration
    public static Int3 operator -(Int3 a)
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค