docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct DoubleRay

    Representation of rays with values stored as doubles.

    Implements
    IFormattable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cloud.HighPrecision.Runtime
    Assembly: Unity.Cloud.HighPrecision.Runtime.dll
    Syntax
    [BurstCompile(CompileSynchronously = true)]
    [Serializable]
    public readonly struct DoubleRay : IFormattable

    Constructors

    DoubleRay(double3, double3)

    Creates a ray starting at origin along direction.

    Declaration
    public DoubleRay(double3 origin, double3 direction)
    Parameters
    Type Name Description
    double3 origin

    The origin point of the ray.

    double3 direction

    The direction of the ray.

    Properties

    Direction

    Declaration
    public double3 Direction { get; }
    Property Value
    Type Description
    double3

    Origin

    Declaration
    public double3 Origin { get; }
    Property Value
    Type Description
    double3

    Methods

    GetPoint(double)

    Declaration
    public double3 GetPoint(double distance)
    Parameters
    Type Name Description
    double distance
    Returns
    Type Description
    double3

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    ToString(string)

    Declaration
    public string ToString(string format)
    Parameters
    Type Name Description
    string format
    Returns
    Type Description
    string

    ToString(string, IFormatProvider)

    Declaration
    public string ToString(string format, IFormatProvider formatProvider)
    Parameters
    Type Name Description
    string format
    IFormatProvider formatProvider
    Returns
    Type Description
    string

    Operators

    explicit operator Ray(DoubleRay)

    Convert a DoubleRay instance to a new single precision Unity Ray instance.

    Declaration
    public static explicit operator Ray(DoubleRay ray)
    Parameters
    Type Name Description
    DoubleRay ray

    The instance to convert.

    Returns
    Type Description
    Ray

    A new Ray instance.

    explicit operator DoubleRay(Ray)

    Convert a single precision Unity Ray instance to a new DoubleRay instance.

    Declaration
    public static explicit operator DoubleRay(Ray ray)
    Parameters
    Type Name Description
    Ray ray

    The instance to convert.

    Returns
    Type Description
    DoubleRay

    A new DoubleRay instance.

    Implements

    IFormattable
    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)