Learn R Programming

spheresmooth (version 0.1.3)

cross: Compute the cross product of two vectors

Description

This function computes the cross product of two input vectors u and v.

Usage

cross(u, v, normalize = FALSE)

Value

Numeric vector representing the cross product of u and v.

Arguments

u

Numeric vector.

v

Numeric vector.

normalize

logical. If TRUE, returns the normalized vector of the cross product result.

Examples

Run this code
cross(c(1,0,0), c(0,1,0))

Run the code above in your browser using DataLab