extend: Extend a point and direction towards a target plane.

View source: R/spatial.R

extendR Documentation

Extend a point and direction towards a target plane.

Description

Starting at 'initial', go in 'direction' until you hit the target plane defined by 'target_point' and 'target_normal'. If you want to include vectors going backwards, specify 'include_backwards=TRUE'.

Usage

extend(
  initial,
  direction,
  target_normal,
  target_point = c(0, 0, 0),
  include_backwards = F
)

Arguments

initial

Starting point for the ray

direction

Direction from which to cast the ray

target_normal, target_point

Define the plane that will catch the rays

include_backwards

Whether to include rays that travel backwards from 'initial' along 'direction' to the target plane.

Details

This function is intended to be used in conjuction with a plot e.g., to show where a peron was looking or where an object was pointing over the course of time or sessions.


MrMallIronmaker/dddr documentation built on May 11, 2022, 8:39 p.m.