docs.unity.cn
    Show / Hide Table of Contents

    Struct SphereGeometry

    A sphere geometry.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    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
    Single

    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
    Boolean

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

    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Calculates a hash code for this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    A hash code for this object.

    Overrides
    ValueType.GetHashCode()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023