semagrams.util.Complex
See theComplex companion object
A class representing a complex number
We use complex numbers for two-dimensional geometry because they can represent either:
- A point
- A vector
- A translation
- A rotation/scaling
Instead of having to remember APIs for all of these, you can just use familiar arithmetic operations.
The operations here are the standard mathematical ones for the complex numbers.
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any