GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Terms
  • Quizzes
  • Help Center
  • Random Term
  • English
  • Español
  • Français
  • Italiano
  • Deutsch
  • Português
  • Nederlands
  • Polski
  • Čeština
  • 日本語

This view

  • Original page
  • New address

GeezerVison is showing techterms.com — Vector Definition - What is a vector?

HomeTechnical TermsVector Definition

Vector

Depending on the context, a vector can refer to three different concepts:

  1. In mathematics, a vector is a quantity with both magnitude and direction.
  2. In computer graphics, vectors define shapes and paths that can be scaled without losing quality.
  3. In computer science, a vector is a dynamic data structure that can grow or shrink as needed.

1. Mathematical Vectors

A mathematical vector is a quantity defined by two values:

  1. magnitude (length)
  2. direction (angle)

It can be represented visually as an arrow, where the length of the arrow is the magnitude, and the way it points is the direction. For example, one vector may be illustrated by a 2-centimeter arrow pointing at 45 degrees, while another might be 4 centimeters long and point at 30 degrees. Vectors are commonly used in physics, engineering, and other fields to represent movement, force, and velocity.

Examples of different vectors and adding two vectors together
Examples of different vectors and adding two vectors together

2. Vectors in Computer Graphics

In computer graphics, a vector graphic is an image comprised of points, lines, and curves defined by mathematical formulas. Unlike raster graphics, which store image data as pixels, vector images can be scaled to any size without becoming blurry or pixelated. Common file formats that use vector graphics include .SVG, .EPS, and .AI (Adobe Illustrator) files.

Examples of different types of vector graphics, including shapes and paths
Examples of different types of vector graphics, including shapes and paths

3. Vectors in Computer Science

In computer science, a vector refers to a dynamic array — a data structure used to store a sequence of values. Unlike a regular array, which has a fixed size, a vector can automatically expand or shrink as elements are added or removed. Vectors manage memory dynamically. They typically use a heap instead of the stack, giving them greater flexibility.

Example of a vector as dynamic array in computer programming
Example of a vector as dynamic array in computer programming

Many programming languages, such as C++ and Java, include built-in vector classes that automatically handle memory allocation and resizing.

Updated June 20, 2025 by Per C.
https://techterms.com/definition/vector

quizTest Your Knowledge

A smartphone's SIM card serves what purpose?

A
Providing removable storage for music, movies, and photos
0%
B
Saving biometric security data that identifies the owner
0%
C
Storing a subscriber's account information with their carrier
0%
D
Remembering credentials for Wi-Fi networks
0%
Correct! Incorrect!     View the SIM Card definition.
More Quizzes →
‹  VDU | Vector Graphic  ›

Tech Factor

? 5 / 10

Related Terms

  1. Vector Graphic
  2. Raster Graphic
  3. EPS
  4. Array
  1. Memory
  2. Stack
  3. Computer Science
  4. Programming Language

The Tech Terms Computer Dictionary

The definition of Vector on this page is an original definition written by the authors of TechTerms.com. If you would like to reference this page or cite this definition, please use the green citation bar directly below the definition.

Our goal is to explain computer terminology in a way that is easy to understand. We strive for accuracy and simplicity with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

The Tech Terms Newsletter

Improve your technical knowledge with our daily or weekly newsletter! Subscribe today and get new terms and quizzes delivered to your inbox.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email. Questions? Please contact us.

Thank You

We just sent you an email to confirm your email address. Once you confirm your address, you will begin to receive the newsletter.

If you have any questions, please contact us.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.