All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.math.angle.AngleBuilder.kt Maven / Gradle / Ivy

package ru.casperix.math.angle

import ru.casperix.math.vector.api.AbstractVector2

interface AngleBuilder, Component : Number> {
    val ZERO: Self
    val MAX: Self

    fun byDirection(value: Vector): Self {
        return byDirection(value.x, value.y)
    }

    /**
     * @return angle from X-axis to vector in [-π, π) interval
     */
    fun byDirection(x: Component, y: Component): Self

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy