You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A line segment is a finite line with two endpoints
Ray
A ray is a line with one endpoint and extends infinitely in one direction
Line
A line is a set of points that are equidistant from a fixed point
Plane
A plane is a flat surface that extends infinitely far
Vector
A vector is a quantity that has magnitude and direction
Angles
Name
Description
Radians
Radians are a unit of angular measure, used in many areas of mathematics. One radian is the angle at the center of a circle subtended by an arc equal in length to the radius of the circle.
Degrees
Degrees are a unit of angular measure, representing $1/360$ of a full rotation.
The dot product of two vectors is simply the sum of the products of the corresponding elements. For example, the dot product of $(x_1, y_1)$ and $(x_2, y_2)$ is $x_1 \times x_2 + y_1 \times y_2$.
Note that this is not a vector, but is simply a single number (called a scalar).
The reason this is useful is that the dot product, $A \cdot B = |A||B|Cos(θ)$, where $θ$ is the angle between the $A$ and $B$.
Property
Description
$A \cdot B = B \cdot A$
Commutative
$A \cdot (B + C) = A \cdot B + A \cdot C$
Distributive
These cases depending on cos() domain:
cases
description
$A \cdot B = 0$
$θ = 90^{\circ}$
$A \cdot B > 0$
$θ < 90^{\circ}$
$A \cdot B < 0$
$θ > 90^{\circ}$
Cross Product (outer product)
The cross product of two 2-D vectors is $x_1 \times y_2 - y_1 \times x_2$ = $A \times B$ = $|A||B|Sin(θ)$
Technically, the cross product is actually a vector
Since we’re only working with 2-D geometry for now, we’ll ignore this fact, and use it like a scalar.
the absolute value of the cross product is the area of the parallelogram formed by the two vectors.
The direction of the cross product is perpendicular to the plane formed by the two vectors.
The direction of the cross product is determined by the right-hand rule.
The magnitude of the cross product is the area of the parallelogram formed by the two vectors.
The magnitude of the cross product is also equal to the determinant of the matrix formed by the two vectors.
Property
Description
$A \times B = -B \times A$
Anti-commutative
$A \times (B + C) = A \times B + A \times C$
Distributive
These cases depending on sin() domain:
cases
description
$A \times B = 0$
$θ = 0^{\circ}$ or $θ = 180^{\circ}$
$A \times B > 0$
$θ < 180^{\circ}$ (convex)
$A \times B < 0$
$θ > 180^{\circ}$ (concave)
Complex Data Type
complex numbers are a data type that is used to represent a number that can be expressed in the form $a + bi$, where $a$ is the real part and $b$ is the imaginary part. The imaginary unit is denoted by $i$, and it is defined by the equation $i^2 = -1$.
Function
Return
real()
Returns the real part of the complex number (X) $*$
imag()
Returns the imaginary part of the complex number (Y) $*$
abs()
Returns the absolute value of the complex number (length)
arg()
Returns the argument of the complex number (angle)
conj()
Returns the conjugate of the complex number (fliping the sign of imaginary part)
norm()
Returns the norm of the complex number (squared length)
polar()
Returns the polar coordinates of the complex number (length and angle)
Note:$*$ The real and imaginary parts of a complex number can be accessed using the real() and imag() methods respectively.