RRRay

Objective-C

@interface RRRay : NSObject

Swift

class RRRay : NSObject

A class that represents a ray in space with defined origin and direction. This ray can be used to determine intersections in the scene.

  • The origin position of the ray

    Declaration

    Objective-C

    @property (nonatomic) simd_float3 origin;

    Swift

    var origin: simd_float3 { get set }
  • The direction vector of the ray

    Declaration

    Objective-C

    @property (nonatomic) simd_float3 direction;

    Swift

    var direction: simd_float3 { get set }