---
title: 4D vector
slug: 4d-vector
qid: 
snapshot: enwiki-001336925894
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1336925894
tags: [20282650, 20646902, 22905584, 23053716, 23603337, 26220375, 29176471]
---

# 4D vector

> [!note] Provenance
> Snapshot `enwiki-001336925894` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1336925894> · Licensed CC BY-SA 4.0

In computer science, a 4D vector is a 4-component vector data type. Uses include homogeneous coordinates for 3-dimensional space in computer graphics, and red green blue alpha (RGBA) values for bitmap images with a color and alpha channel (as such they are widely used in computer graphics). They may also represent quaternions (useful for rotations) although the algebra they define is different.

In computer science, a 4D vector is a 4-component vector data type. Uses include homogeneous coordinates for 3-dimensional space in computer graphics, and red green blue alpha (RGBA) values for bitmap images with a color and alpha channel (as such they are widely used in computer graphics). They may also represent quaternions (useful for rotations) although the algebra they define is different. ==References==
