liveBook · Manning

Vector-to-vector product

A vector-to-vector product is an operation combining two vectors according to a defined rule to produce a scalar or another vector.

How 2 Manning books explain it

Geometry for Programmers

A vector product is an operation combining vectors, such as a dot product, cross product, or triple product, to produce a scalar or vector.

How it is used
Supports applied-geometry algorithms by converting vectors into scalars or vectors for angles, projections, areas, and volumes.
How deep it goes
Defines three products, explains their geometric roles, and applies them to plane, triangle, and segment distance calculations.
Examples
Uses translated and scaled point-vector models, parallelepiped heights, triangle planes, and point-to-segment distance calculations.
What you can do after
Build geometric algorithms for plane, triangle, and segment distances, including signed distance calculations.

Read how Geometry for Programmers explains vector-to-vector product →

Advanced Algorithms and Data Structures

The cross product is a vector operation in three-dimensional space whose result is perpendicular to its two operand vectors and whose magnitude depends on their sine-separated area.

How it is used
Checks whether two straight-line segments intersect by testing vector parallelism and solving their intersection parameters.
How deep it goes
Develops the perpendicular-vector derivation and implementation of scaling factors, but does not extend beyond this planar intersection use.
Examples
Uses segment endpoints A, B, C, and D, the equation B + h·v = D + g·w, and vectorScalingFactor and edgesIntersection.
What you can do after
Apply the operation to implement planar segment-intersection checks using perpendicular vectors and bounded scaling factors.

Read how Advanced Algorithms and Data Structures explains vector-to-vector product →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.