Computer Graphics and NumPy Essentials

0.0(0)
Studied by 1 person
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering NumPy basics, 3D graphics math, and course logistics mentioned in the lecture notes.

Last updated 5:43 PM on 9/19/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

46 Terms

1
New cards

NumPy

Open-source Python library for numerical computing; provides the ndarray object and vectorized operations for array-based math.

2
New cards

ndarray

NumPy’s core multi-dimensional array data structure used for numerical computations.

3
New cards

Array vs List

List is a Python built-in dynamic container (can hold mixed types); ndarray is homogeneous, fixed-size, and optimized for numeric computation.

4
New cards

shape

The dimensions of an array, given as a tuple (e.g., (3, 4) for 3 rows by 4 columns).

5
New cards

size

Total number of elements in an array (the product of its shape dimensions).

6
New cards

ndim

The number of axes (dimensions) of an array.

7
New cards

dtype

Data type of the elements in an array (e.g., int64, float64, str).

8
New cards

np.zeros

Creates an array filled with zeros with a specified shape.

9
New cards

np.ones

Creates an array filled with ones with a specified shape.

10
New cards

np.empty

Creates an uninitialized array; contents are whatever memory previously held.

11
New cards

reshape

Change the shape of an array without changing its data.

12
New cards

flatten

Return a copy of the array collapsed into one dimension.

13
New cards

linspace

Generate a specified number of evenly spaced values between start and stop (inclusive).

14
New cards

arange

Create values in a range with a fixed step; similar to Python range but returns an array.

15
New cards

Broadcasting

NumPy rule that automatically expands arrays to compatible shapes for elementwise operations.

16
New cards

dot product

Matrix product of two arrays; use A.dot(B) or A @ B to perform it.

17
New cards

element-wise multiplication

Multiplying corresponding elements of two arrays (A * B) rather than matrix multiplication.

18
New cards

Broadcasting example

A scenario where shapes like (2,4) and (2,1) broadcast to a common shape before the operation.

19
New cards

np.dot

NumPy function that performs the dot product (matrix multiplication) for arrays.

20
New cards

MOSS

Plagiarism-detection tool that compares code submissions for similarity.

21
New cards

GeoGebra

Online visualization tool for geometry, algebra, and calculus used to visualize planes, lines, and intersections.

22
New cards

Parametric equation

Describes lines or curves using a parameter t: x = x0 + a t, y = y0 + b t, z = z0 + c t in 3D.

23
New cards

Plane equation

Ax + By + Cz + D = 0; a plane in 3D with normal vector (A, B, C).

24
New cards

Normal vector

A vector perpendicular to a plane; coefficients (A, B, C) in the plane equation.

25
New cards

Distance from origin to plane

For Ax + By + Cz + D = 0, distance from origin is |D| / sqrt(A^2 + B^2 + C^2).

26
New cards

Right-handed coordinate system

3D orientation where X × Y points to +Z; common convention in graphics.

27
New cards

Parametric line in 3D

A line described by x = x0 + a t, y = y0 + b t, z = z0 + c t using a parameter t.

28
New cards

Rotation matrix

A 3×3 matrix that rotates a vector around a principal axis by angle θ.

29
New cards

RotX matrix

Rotation about the X-axis: [[1,0,0],[0,cosθ,-sinθ],[0,sinθ,cosθ]].

30
New cards

RotY matrix

Rotation about the Y-axis: [[cosθ,0,sinθ],[0,1,0],[-sinθ,0,cosθ]].

31
New cards

RotZ matrix

Rotation about the Z-axis: [[cosθ,-sinθ,0],[sinθ,cosθ,0],[0,0,1]].

32
New cards

Translation

Moving points by adding a translation vector (dx, dy, dz) to coordinates.

33
New cards

Scaling

Resizing by multiplying coordinates with scale factors (sx, sy, sz); can be uniform or nonuniform.

34
New cards

Mirroring

Reflection achieved by negative scaling along an axis (e.g., scale by -1 on an axis).

35
New cards

3D graphics pipeline

Sequence of operations to render 3D scenes: modeling (translate/rotate/scale), projection to 2D, and display.

36
New cards

Coordinate handedness

Right-handed vs left-handed systems; orientation affects rotation signs and axis directions.

37
New cards

Projection to 2D

Mapping 3D points to 2D screen coordinates (perspective or orthographic projection).

38
New cards

Geogebra visualization

Online tool to visualize planes, lines, and intersections in 2D/3D.

39
New cards

Plane normal vector vs plane constants

Normal vector (A,B,C) and distance term D define plane orientation and position.

40
New cards

3D vs 2D vectors

Vectors describe direction and magnitude in space; translation affects points, not the vector itself.

41
New cards

Linear space vs dimension

Linear space refers to evenly spaced samples (linspace); dimension is the number of axes in an array.

42
New cards

Python in graphics class

Used for programming assignments; not a math course but a tool for graphics work.

43
New cards

GDB/VS Code/PyCharm

Development environments favored for writing and debugging Python code.

44
New cards

Geometric transformation

Any operation that changes position, orientation, or size: translation, rotation, scaling, projection.

45
New cards

3D to 2D display

Objects exist in 3D; to display they are transformed (rotated/translated/scaled) and projected to 2D.

46
New cards

Broadcasting pitfalls

Relying on broadcasting when a strict matrix operation is intended can hide bugs and produce unintended results.