openrndr / org.openrndr.math / LinearType

LinearType

interface LinearType<T : LinearType<T>> (source)

Functions

div

abstract operator fun div(scale: Double): T

minus

abstract operator fun minus(right: T): T

plus

abstract operator fun plus(right: T): T

times

abstract operator fun times(scale: Double): T

Inheritors

AlgebraicColor

interface for algebraic color

interface AlgebraicColor<T : AlgebraicColor<T>> : LinearType<T>

LineSegment

a 2D line segment

data class LineSegment : LinearType<LineSegment>

Matrix33

A 3x3 matrix with double precision

data class Matrix33 : LinearType<Matrix33>

Matrix44

A 4x4 matrix with double precision

data class Matrix44 : Serializable, LinearType<Matrix44>

Polar

Polar coordinate Ref: https://en.wikipedia.org/wiki/Polar_coordinate_system theta angle in degrees

data class Polar : LinearType<Polar>

Spherical

data class Spherical : LinearType<Spherical>

Vector2

Double precision vector 2

data class Vector2 : Serializable, LinearType<Vector2>

Vector3

Double precision vector 3

data class Vector3 : Serializable, LinearType<Vector3>

Vector4

Double precision vector 4

data class Vector4 : Serializable, LinearType<Vector4>