Class GfRay
Namespace: pxr
Syntax
public class GfRay : IDisposable
Constructors
GfRay()
Declaration
GfRay(GfVec3d, GfVec3d)
Declaration
public GfRay(GfVec3d startPoint, GfVec3d direction)
Parameters
Fields
swigCMemOwn
Declaration
protected bool swigCMemOwn
Field Value
Methods
Dispose()
Declaration
public virtual void Dispose()
Implements
Equals(GfRay, GfRay)
Declaration
public static bool Equals(GfRay lhs, GfRay rhs)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object rhs)
Parameters
Type |
Name |
Description |
Object |
rhs |
|
Returns
Overrides
Finalize()
Declaration
protected void Finalize()
FindClosestPoint(GfVec3d)
Declaration
public GfVec3d FindClosestPoint(GfVec3d point)
Parameters
Type |
Name |
Description |
GfVec3d |
point |
|
Returns
FindClosestPoint(GfVec3d, out Double)
Declaration
public GfVec3d FindClosestPoint(GfVec3d point, out double rayDistance)
Parameters
Returns
GetDirection()
Declaration
public GfVec3d GetDirection()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetPoint(Double)
Declaration
public GfVec3d GetPoint(double distance)
Parameters
Type |
Name |
Description |
Double |
distance |
|
Returns
GetStartPoint()
Declaration
public GfVec3d GetStartPoint()
Returns
Intersect(GfBBox3d)
Declaration
public bool Intersect(GfBBox3d box)
Parameters
Returns
Intersect(GfBBox3d, out Double)
Declaration
public bool Intersect(GfBBox3d box, out double enterDistance)
Parameters
Returns
Intersect(GfBBox3d, out Double, out Double)
Declaration
public bool Intersect(GfBBox3d box, out double enterDistance, out double exitDistance)
Parameters
Returns
Intersect(GfPlane)
Declaration
public bool Intersect(GfPlane plane)
Parameters
Type |
Name |
Description |
GfPlane |
plane |
|
Returns
Intersect(GfPlane, out Double)
Declaration
public bool Intersect(GfPlane plane, out double distance)
Parameters
Returns
Intersect(GfPlane, out Double, out Boolean)
Declaration
public bool Intersect(GfPlane plane, out double distance, out bool frontFacing)
Parameters
Returns
Intersect(GfRange3d)
Declaration
public bool Intersect(GfRange3d box)
Parameters
Returns
Intersect(GfRange3d, out Double)
Declaration
public bool Intersect(GfRange3d box, out double enterDistance)
Parameters
Returns
Intersect(GfRange3d, out Double, out Double)
Declaration
public bool Intersect(GfRange3d box, out double enterDistance, out double exitDistance)
Parameters
Returns
Intersect(GfVec3d, GfVec3d, GfVec3d)
Declaration
public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2)
Parameters
Returns
Intersect(GfVec3d, GfVec3d, GfVec3d, out Double)
Declaration
public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2, out double distance)
Parameters
Returns
Intersect(GfVec3d, GfVec3d, GfVec3d, out Double, GfVec3d)
Declaration
public bool Intersect(GfVec3d p0, GfVec3d p1, GfVec3d p2, out double distance, GfVec3d barycentricCoords)
Parameters
Returns
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
Returns
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
Returns
Intersect(GfVec3d, GfVec3d, Double)
Declaration
public bool Intersect(GfVec3d origin, GfVec3d axis, double radius)
Parameters
Returns
Intersect(GfVec3d, GfVec3d, Double, Double)
Declaration
public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, double height)
Parameters
Returns
Intersect(GfVec3d, GfVec3d, Double, Double, out Double)
Declaration
public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, double height, out double enterDistance)
Parameters
Returns
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
Returns
Intersect(GfVec3d, GfVec3d, Double, out Double)
Declaration
public bool Intersect(GfVec3d origin, GfVec3d axis, double radius, out double enterDistance)
Parameters
Returns
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
Returns
Intersect(GfVec3d, Double)
Declaration
public bool Intersect(GfVec3d center, double radius)
Parameters
Returns
Intersect(GfVec3d, Double, out Double)
Declaration
public bool Intersect(GfVec3d center, double radius, out double enterDistance)
Parameters
Returns
Intersect(GfVec3d, Double, out Double, out Double)
Declaration
public bool Intersect(GfVec3d center, double radius, out double enterDistance, out double exitDistance)
Parameters
Returns
SetEnds(GfVec3d, GfVec3d)
Declaration
public void SetEnds(GfVec3d startPoint, GfVec3d endPoint)
Parameters
SetPointAndDirection(GfVec3d, GfVec3d)
Declaration
public void SetPointAndDirection(GfVec3d startPoint, GfVec3d direction)
Parameters
Declaration
public GfRay Transform(GfMatrix4d matrix)
Parameters
Returns
Operators
Equality(GfRay, GfRay)
Declaration
public static bool operator ==(GfRay lhs, GfRay rhs)
Parameters
Returns
Inequality(GfRay, GfRay)
Declaration
public static bool operator !=(GfRay lhs, GfRay rhs)
Parameters
Returns
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.