docs.unity3d.com
    Show / Hide Table of Contents

    Class GfRay

    Inheritance
    Object
    GfRay
    Inherited Members
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: pxr
    Syntax
    public class GfRay : IDisposable

    Constructors

    GfRay()

    Declaration
    public GfRay()

    GfRay(GfVec3d, GfVec3d)

    Declaration
    public GfRay(GfVec3d startPoint, GfVec3d direction)
    Parameters
    Type Name Description
    GfVec3d startPoint
    GfVec3d direction

    Fields

    swigCMemOwn

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    Boolean

    Methods

    Dispose()

    Declaration
    public virtual void Dispose()
    Implements
    IDisposable.Dispose()

    Equals(GfRay, GfRay)

    Declaration
    public static bool Equals(GfRay lhs, GfRay rhs)
    Parameters
    Type Name Description
    GfRay lhs
    GfRay rhs
    Returns
    Type Description
    Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object rhs)
    Parameters
    Type Name Description
    Object rhs
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    Finalize()

    Declaration
    protected void Finalize()

    FindClosestPoint(GfVec3d)

    Declaration
    public GfVec3d FindClosestPoint(GfVec3d point)
    Parameters
    Type Name Description
    GfVec3d point
    Returns
    Type Description
    GfVec3d

    FindClosestPoint(GfVec3d, out Double)

    Declaration
    public GfVec3d FindClosestPoint(GfVec3d point, out double rayDistance)
    Parameters
    Type Name Description
    GfVec3d point
    Double rayDistance
    Returns
    Type Description
    GfVec3d

    GetDirection()

    Declaration
    public GfVec3d GetDirection()
    Returns
    Type Description
    GfVec3d

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    GetPoint(Double)

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

    GetStartPoint()

    Declaration
    public GfVec3d GetStartPoint()
    Returns
    Type Description
    GfVec3d

    Intersect(GfBBox3d)

    Declaration
    public bool Intersect(GfBBox3d box)
    Parameters
    Type Name Description
    GfBBox3d box
    Returns
    Type Description
    Boolean

    Intersect(GfBBox3d, out Double)

    Declaration
    public bool Intersect(GfBBox3d box, out double enterDistance)
    Parameters
    Type Name Description
    GfBBox3d box
    Double enterDistance
    Returns
    Type Description
    Boolean

    Intersect(GfBBox3d, out Double, out Double)

    Declaration
    public bool Intersect(GfBBox3d box, out double enterDistance, out double exitDistance)
    Parameters
    Type Name Description
    GfBBox3d box
    Double enterDistance
    Double exitDistance
    Returns
    Type Description
    Boolean

    Intersect(GfPlane)

    Declaration
    public bool Intersect(GfPlane plane)
    Parameters
    Type Name Description
    GfPlane plane
    Returns
    Type Description
    Boolean

    Intersect(GfPlane, out Double)

    Declaration
    public bool Intersect(GfPlane plane, out double distance)
    Parameters
    Type Name Description
    GfPlane plane
    Double distance
    Returns
    Type Description
    Boolean

    Intersect(GfPlane, out Double, out Boolean)

    Declaration
    public bool Intersect(GfPlane plane, out double distance, out bool frontFacing)
    Parameters
    Type Name Description
    GfPlane plane
    Double distance
    Boolean frontFacing
    Returns
    Type Description
    Boolean

    Intersect(GfRange3d)

    Declaration
    public bool Intersect(GfRange3d box)
    Parameters
    Type Name Description
    GfRange3d box
    Returns
    Type Description
    Boolean

    Intersect(GfRange3d, out Double)

    Declaration
    public bool Intersect(GfRange3d box, out double enterDistance)
    Parameters
    Type Name Description
    GfRange3d box
    Double enterDistance
    Returns
    Type Description
    Boolean

    Intersect(GfRange3d, out Double, out Double)

    Declaration
    public bool Intersect(GfRange3d box, out double enterDistance, out double exitDistance)
    Parameters
    Type Name Description
    GfRange3d box
    Double enterDistance
    Double exitDistance
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, GfVec3d)

    Declaration
    public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2)
    Parameters
    Type Name Description
    GfVec3d p0
    GfVec3d p1
    GfVec3d p2
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, GfVec3d, out Double)

    Declaration
    public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2, out double distance)
    Parameters
    Type Name Description
    GfVec3d p0
    GfVec3d p1
    GfVec3d p2
    Double distance
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, GfVec3d, out Double, GfVec3d)

    Declaration
    public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2, out double distance, GfVec3d barycentricCoords)
    Parameters
    Type Name Description
    GfVec3d p0
    GfVec3d p1
    GfVec3d p2
    Double distance
    GfVec3d barycentricCoords
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, GfVec3d, out Double, GfVec3d, out Boolean)

    Declaration
    public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2, out double distance, GfVec3d barycentricCoords, out bool frontFacing)
    Parameters
    Type Name Description
    GfVec3d p0
    GfVec3d p1
    GfVec3d p2
    Double distance
    GfVec3d barycentricCoords
    Boolean frontFacing
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, GfVec3d, out Double, GfVec3d, out Boolean, Double)

    Declaration
    public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2, out double distance, GfVec3d barycentricCoords, out bool frontFacing, double maxDist)
    Parameters
    Type Name Description
    GfVec3d p0
    GfVec3d p1
    GfVec3d p2
    Double distance
    GfVec3d barycentricCoords
    Boolean frontFacing
    Double maxDist
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, Double)

    Declaration
    public bool Intersect(GfVec3d origin, GfVec3d axis, double radius)
    Parameters
    Type Name Description
    GfVec3d origin
    GfVec3d axis
    Double radius
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, Double, Double)

    Declaration
    public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, double height)
    Parameters
    Type Name Description
    GfVec3d origin
    GfVec3d axis
    Double radius
    Double height
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, Double, Double, out Double)

    Declaration
    public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, double height, out double enterDistance)
    Parameters
    Type Name Description
    GfVec3d origin
    GfVec3d axis
    Double radius
    Double height
    Double enterDistance
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, Double, Double, out Double, out Double)

    Declaration
    public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, double height, out double enterDistance, out double exitDistance)
    Parameters
    Type Name Description
    GfVec3d origin
    GfVec3d axis
    Double radius
    Double height
    Double enterDistance
    Double exitDistance
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, Double, out Double)

    Declaration
    public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, out double enterDistance)
    Parameters
    Type Name Description
    GfVec3d origin
    GfVec3d axis
    Double radius
    Double enterDistance
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, GfVec3d, Double, out Double, out Double)

    Declaration
    public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, out double enterDistance, out double exitDistance)
    Parameters
    Type Name Description
    GfVec3d origin
    GfVec3d axis
    Double radius
    Double enterDistance
    Double exitDistance
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, Double)

    Declaration
    public bool Intersect(GfVec3d center, double radius)
    Parameters
    Type Name Description
    GfVec3d center
    Double radius
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, Double, out Double)

    Declaration
    public bool Intersect(GfVec3d center, double radius, out double enterDistance)
    Parameters
    Type Name Description
    GfVec3d center
    Double radius
    Double enterDistance
    Returns
    Type Description
    Boolean

    Intersect(GfVec3d, Double, out Double, out Double)

    Declaration
    public bool Intersect(GfVec3d center, double radius, out double enterDistance, out double exitDistance)
    Parameters
    Type Name Description
    GfVec3d center
    Double radius
    Double enterDistance
    Double exitDistance
    Returns
    Type Description
    Boolean

    SetEnds(GfVec3d, GfVec3d)

    Declaration
    public void SetEnds(GfVec3d startPoint, GfVec3d endPoint)
    Parameters
    Type Name Description
    GfVec3d startPoint
    GfVec3d endPoint

    SetPointAndDirection(GfVec3d, GfVec3d)

    Declaration
    public void SetPointAndDirection(GfVec3d startPoint, GfVec3d direction)
    Parameters
    Type Name Description
    GfVec3d startPoint
    GfVec3d direction

    Transform(GfMatrix4d)

    Declaration
    public GfRay Transform(GfMatrix4d matrix)
    Parameters
    Type Name Description
    GfMatrix4d matrix
    Returns
    Type Description
    GfRay

    Operators

    Equality(GfRay, GfRay)

    Declaration
    public static bool operator ==(GfRay lhs, GfRay rhs)
    Parameters
    Type Name Description
    GfRay lhs
    GfRay rhs
    Returns
    Type Description
    Boolean

    Inequality(GfRay, GfRay)

    Declaration
    public static bool operator !=(GfRay lhs, GfRay rhs)
    Parameters
    Type Name Description
    GfRay lhs
    GfRay rhs
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Thursday, October 19, 2023