Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PEXTransformVectors2D(3) — Open3D 4.96

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PEXTransformVectors2D(3)  —  Subroutines

Name

PEXTransformVectors2D

Synopsis

void PEXTransformVectors2D(PEXMatrix3x3 transform, int count, PEXVector2D ∗vectors, PEXVector2D ∗vectors_return)

Arguments

transformThe transformation matrix to apply to the vectors

countThe number of vectors to transform

vectorsA pointer to the array of 2D vectors to transform

vectors_return
A pointer to an array in which to store the transformed vectors

Returns

None

Description

This function applies the upper 2x2 submatrix of the specified transformation matrix to the list of 2D vectors.  The transformation is applied:

V’ = T’xV

Where V is the vector, treated as a column vector, and T’ is the upper 2x2 sub-matrix of "transform."

If the return array is the same as the input array, the function will overwrite the input values with the transformed values. 

Errors

None

See Also

PEXTransformVectors, PEXNormalizeVectors2D

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026