Search Results for

    Show / Hide Table of Contents

    Struct Capsule

    A capsule is a sphere that is extended across the line.

    Implements
    System.IEquatable<Capsule>
    Inherited Members
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: ProjectDawn.Geometry3D
    Assembly: ProjectDawn.Geometry.dll
    Syntax
    [Serializable]
    public struct Capsule : IEquatable<Capsule>

    Constructors

    | Improve this Doc View Source

    Capsule(Line, Single)

    Declaration
    public Capsule(Line line, float radius)
    Parameters
    Type Name Description
    Line line
    System.Single radius
    | Improve this Doc View Source

    Capsule(float3, Single, Single)

    Declaration
    public Capsule(float3 center, float height, float radius)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 center
    System.Single height
    System.Single radius

    Fields

    | Improve this Doc View Source

    Line

    Line through capsule extends.

    Declaration
    public Line Line
    Field Value
    Type Description
    Line
    | Improve this Doc View Source

    Radius

    Radius of the capsule.

    Declaration
    public float Radius
    Field Value
    Type Description
    System.Single

    Properties

    | Improve this Doc View Source

    Center

    Center of the capsule.

    Declaration
    public float3 Center { get; }
    Property Value
    Type Description
    Unity.Mathematics.float3
    | Improve this Doc View Source

    Diameter

    Diameter of the capsule. Diameter = 2 * Radius.

    Declaration
    public float Diameter { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Height

    Height of the capsule;

    Declaration
    public float Height { get; }
    Property Value
    Type Description
    System.Single

    Methods

    | Improve this Doc View Source

    Equals(Capsule)

    Declaration
    public bool Equals(Capsule other)
    Parameters
    Type Name Description
    Capsule other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    Overlap(Box)

    Returns true if shapes surfaces overlap.

    Declaration
    public bool Overlap(Box rectangle)
    Parameters
    Type Name Description
    Box rectangle
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Overlap(Capsule)

    Returns true if shapes surfaces overlap.

    Declaration
    public bool Overlap(Capsule capsule)
    Parameters
    Type Name Description
    Capsule capsule
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Overlap(Line)

    Returns true if shapes surfaces overlap.

    Declaration
    public bool Overlap(Line line)
    Parameters
    Type Name Description
    Line line
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Overlap(Sphere)

    Returns true if shapes surfaces overlap.

    Declaration
    public bool Overlap(Sphere circle)
    Parameters
    Type Name Description
    Sphere circle
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Overlap(float3)

    Returns true if shapes surfaces overlap.

    Declaration
    public bool Overlap(float3 point)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 point
    Returns
    Type Description
    System.Boolean

    Operators

    | Improve this Doc View Source

    Equality(Capsule, Capsule)

    Declaration
    public static bool operator ==(Capsule lhs, Capsule rhs)
    Parameters
    Type Name Description
    Capsule lhs
    Capsule rhs
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(Capsule, Capsule)

    Declaration
    public static bool operator !=(Capsule lhs, Capsule rhs)
    Parameters
    Type Name Description
    Capsule lhs
    Capsule rhs
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © ProjectDawn.
    Generated by DocFX