docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SphereGeometry

    A sphere geometry.

    Implements
    IEquatable<SphereGeometry>
    Inherited Members
    ValueType.Equals(object)
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct SphereGeometry : IEquatable<SphereGeometry>

    Properties

    Center

    The center of the sphere.

    Declaration
    public float3 Center { get; set; }
    Property Value
    Type Description
    float3

    The center.

    Radius

    The radius of the sphere.

    Declaration
    public float Radius { get; set; }
    Property Value
    Type Description
    float

    The radius.

    Methods

    Equals(SphereGeometry)

    Tests if this SphereGeometry is considered equal to another.

    Declaration
    public bool Equals(SphereGeometry other)
    Parameters
    Type Name Description
    SphereGeometry other

    The sphere geometry to compare to this object.

    Returns
    Type Description
    bool

    True if the objects are considered equal, false if they are not.

    GetHashCode()

    Calculates a hash code for this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this object.

    Overrides
    ValueType.GetHashCode()

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 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)