Component-wise operations

Given two vectors, there are several component-wise operations we can perform. These operations will operate on each component of the vector and yield a new vector.

You can add two vectors component wise. Given two n-dimensional vectors Component-wise operations and Component-wise operations, addition is defined as follows:

Component-wise operations

You can also subtract two vectors component wise. Given two n-dimensional vectors and , subtraction is defined as follows:

Multiplying two vectors can also ...

Get Game Physics Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.