vector3_prod: Vector (cross) and scalar (dot) products

vector3_prodR Documentation

Vector (cross) and scalar (dot) products

Description

Compute the vector and scalar products, also known as the cross and dot products.

Usage

cross(a, b)

dot(a, b)

Arguments

a, b

Vectors to be multiplied

Details

The cross product of two vectors is a vector perpendicular to both inputs and with the same length as the area of a parallelogram constructed by both inputs. The dot product returns a scalar value that is the largest (and the product of the lengths) when the two input vectors are aligned, smallest when they are 180 degrees apart, and zero when they are perpendicular.


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