docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RndVec3

    Vector3 that is sortable and equatable by a rounded value (resolution).

    Implements
    IEquatable<RndVec3>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Polybrush
    Assembly: Unity.Polybrush.dll
    Syntax
    public struct RndVec3 : IEquatable<RndVec3>

    Methods

    Equals(object)

    Equality comparer for RndVec3

    Declaration
    public override bool Equals(object b)
    Parameters
    Type Name Description
    object b

    System.Object that should be compare to this

    Returns
    Type Description
    bool

    true if the 2 elements are RndVec3 (or Vector3) and are equals

    Overrides
    ValueType.Equals(object)

    Equals(RndVec3)

    Equality comparer for RndVec3

    Declaration
    public bool Equals(RndVec3 p)
    Parameters
    Type Name Description
    RndVec3 p

    RndVec3 to compare to this

    Returns
    Type Description
    bool

    true if the 2 RndVec3 are equals

    Equals(Vector3)

    Equality comparer for a RndVec3 with a Vector3

    Declaration
    public bool Equals(Vector3 p)
    Parameters
    Type Name Description
    Vector3 p

    Vector3 to compare to this

    Returns
    Type Description
    bool

    true if this is equal to the Vector3 regarding the RndVec3 resolution

    GetHashCode()

    HashCode Generation

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    unique hashcode for RndVec3

    Overrides
    ValueType.GetHashCode()

    ToString()

    Stringification of the RndVec3 data

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String representing the RndVec3

    Overrides
    ValueType.ToString()

    Operators

    implicit operator Vector3(RndVec3)

    Constructor for a Vector3 from a RndVec3

    Declaration
    public static implicit operator Vector3(RndVec3 p)
    Parameters
    Type Name Description
    RndVec3 p

    input RndVec3

    Returns
    Type Description
    Vector3

    Vector3 representing p

    implicit operator RndVec3(Vector3)

    Constructor for a RndVec3 from a Vector3

    Declaration
    public static implicit operator RndVec3(Vector3 p)
    Parameters
    Type Name Description
    Vector3 p

    input Vector3

    Returns
    Type Description
    RndVec3

    RndVec3 representing p

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)