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 and , addition is defined as follows:
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.