Class Ray
public class Ray
- Inheritance
-
Ray
- Inherited Members
Methods
Alloc()
Calls native constructor graphene_ray_alloc. Version: 1.4
[Version("1.4")]
public static extern RayOwnedHandle Alloc()
Returns
- RayOwnedHandle
Transfer ownership: Full Nullable: False
Equal(RayHandle, RayHandle)
Calls native method graphene_ray_equal. Version: 1.4
[Version("1.4")]
public static extern bool Equal(RayHandle a, RayHandle b)
Parameters
a
RayHandleTransfer ownership: None Nullable: False
b
RayHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
Free(RayHandle)
Calls native method graphene_ray_free. Version: 1.4
[Version("1.4")]
public static extern void Free(RayHandle r)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
GetDistanceToPlane(RayHandle, PlaneHandle)
Calls native method graphene_ray_get_distance_to_plane. Version: 1.4
[Version("1.4")]
public static extern float GetDistanceToPlane(RayHandle r, PlaneHandle p)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
p
PlaneHandleTransfer ownership: None Nullable: False
Returns
- float
Transfer ownership: None Nullable: False
GetDistanceToPoint(RayHandle, Point3DHandle)
Calls native method graphene_ray_get_distance_to_point. Version: 1.4
[Version("1.4")]
public static extern float GetDistanceToPoint(RayHandle r, Point3DHandle p)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
p
Point3DHandleTransfer ownership: None Nullable: False
Returns
- float
Transfer ownership: None Nullable: False
GetGType()
Calls native function graphene_ray_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
Init(RayHandle, Point3DHandle, Vec3Handle)
Calls native method graphene_ray_init. Version: 1.4
[Version("1.4")]
public static extern RayUnownedHandle Init(RayHandle r, Point3DHandle origin, Vec3Handle direction)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
origin
Point3DHandleTransfer ownership: None Nullable: True
direction
Vec3HandleTransfer ownership: None Nullable: True
Returns
- RayUnownedHandle
Transfer ownership: None Nullable: False
InitFromRay(RayHandle, RayHandle)
Calls native method graphene_ray_init_from_ray. Version: 1.4
[Version("1.4")]
public static extern RayUnownedHandle InitFromRay(RayHandle r, RayHandle src)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
src
RayHandleTransfer ownership: None Nullable: False
Returns
- RayUnownedHandle
Transfer ownership: None Nullable: False
InitFromVec3(RayHandle, Vec3Handle, Vec3Handle)
Calls native method graphene_ray_init_from_vec3. Version: 1.4
[Version("1.4")]
public static extern RayUnownedHandle InitFromVec3(RayHandle r, Vec3Handle origin, Vec3Handle direction)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
origin
Vec3HandleTransfer ownership: None Nullable: True
direction
Vec3HandleTransfer ownership: None Nullable: True
Returns
- RayUnownedHandle
Transfer ownership: None Nullable: False
IntersectBox(RayHandle, BoxHandle, out float)
Calls native method graphene_ray_intersect_box. Version: 1.10
[Version("1.10")]
public static extern RayIntersectionKind IntersectBox(RayHandle r, BoxHandle b, out float tOut)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
b
BoxHandleTransfer ownership: None Nullable: False
tOut
floatTransfer ownership: Full Nullable: False
Returns
- RayIntersectionKind
Transfer ownership: None Nullable: False
IntersectSphere(RayHandle, SphereHandle, out float)
Calls native method graphene_ray_intersect_sphere. Version: 1.10
[Version("1.10")]
public static extern RayIntersectionKind IntersectSphere(RayHandle r, SphereHandle s, out float tOut)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
s
SphereHandleTransfer ownership: None Nullable: False
tOut
floatTransfer ownership: Full Nullable: False
Returns
- RayIntersectionKind
Transfer ownership: None Nullable: False
IntersectTriangle(RayHandle, TriangleHandle, out float)
Calls native method graphene_ray_intersect_triangle. Version: 1.10
[Version("1.10")]
public static extern RayIntersectionKind IntersectTriangle(RayHandle r, TriangleHandle t, out float tOut)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
t
TriangleHandleTransfer ownership: None Nullable: False
tOut
floatTransfer ownership: Full Nullable: False
Returns
- RayIntersectionKind
Transfer ownership: None Nullable: False
IntersectsBox(RayHandle, BoxHandle)
Calls native method graphene_ray_intersects_box. Version: 1.10
[Version("1.10")]
public static extern bool IntersectsBox(RayHandle r, BoxHandle b)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
b
BoxHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
IntersectsSphere(RayHandle, SphereHandle)
Calls native method graphene_ray_intersects_sphere. Version: 1.10
[Version("1.10")]
public static extern bool IntersectsSphere(RayHandle r, SphereHandle s)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
s
SphereHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
IntersectsTriangle(RayHandle, TriangleHandle)
Calls native method graphene_ray_intersects_triangle. Version: 1.10
[Version("1.10")]
public static extern bool IntersectsTriangle(RayHandle r, TriangleHandle t)
Parameters
r
RayHandleTransfer ownership: None Nullable: False
t
TriangleHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False