Package space.kscience.kmath.geometry

Types

Link copied to clipboard
object Euclidean2DSpace : GeometrySpace<Vector2D> , ScaleOperations<Vector2D>

2D Euclidean space

Link copied to clipboard
object Euclidean3DSpace : GeometrySpace<Vector3D> , ScaleOperations<Vector3D>
Link copied to clipboard
interface GeometrySpace<V : Vector> : Group<V> , ScaleOperations<V>
Link copied to clipboard
data class Line<out V : Vector>(base: V, direction: V)
Link copied to clipboard
typealias Line2D = Line<Vector2D>
Link copied to clipboard
typealias Line3D = Line<Vector3D>
Link copied to clipboard
interface ReferenceFrame
Link copied to clipboard
interface Vector
Link copied to clipboard
interface Vector2D : Buffer<Double> , Vector
Link copied to clipboard
interface Vector3D : Buffer<Double> , Vector

Functions

Link copied to clipboard
fun <V : Vector> GeometrySpace<V>.projectAlong(vector: V, normal: V, base: V): V

Project vector onto a hyperplane, which is defined by a normal and base. In 2D case it is the projection to a line, in 3d case it is the one to a plane.

Link copied to clipboard
fun <V : Vector> GeometrySpace<V>.projectToLine(vector: V, line: Line<V>): V

Project vector onto a line.

Link copied to clipboard
fun Vector2D(x: Double, y: Double): Vector2D
Link copied to clipboard
fun Vector3D(x: Double, y: Double, z: Double): Vector3D

Properties

Link copied to clipboard
val Vector2D.r: Double
Link copied to clipboard
val Vector3D.r: Double