Vector
class in package klyn.math.geometry

    public class Vector<NUMBER extends AbstractNumber = Double>:

Vector
Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | x `x as NUMBER:` | No summary.
public propert | y `y y as NUMBER:` | No summary.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Vector `Vector(x as NUMBER, y as NUMBER):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | cross `cross(other as Vector) as Double:` | No summary.
public | dot `dot(other as Vector) as Double:` | No summary.
public | magnitude `magnitude() as Double:` | No summary.
public | normalize `normalize() as Vector:` | No summary.
public | toString `toString() as String:` | No summary.

Operators

Modifier and Type | Member | Description
--- | --- | ---
public static | operator*(v1 as Vector, scalar as NUMBER) as Vector: | No summary.
public static | operator+(v1 as Vector, v2 as Vector) as Vector: | No summary.
public static | operator-(v1 as Vector, v2 as Vector) as Vector: | No summary.
public static | operator/(v1 as Vector, scalar as NUMBER) as Vector: | No summary.