# nodesnim/core/vector2

Dark Mode

Search:
Group by:

# Types

    Vector2Obj = object
      x*, y*: float

    Vector2Ref = ref Vector2Obj

# Procs

    proc Vector2(x, y: float): Vector2Ref {...}{.inline, raises: [], tags: [].}

    proc Vector2(b: Vector2Ref): Vector2Ref {...}{.inline, raises: [], tags: [].}

    proc Vector2(): Vector2Ref {...}{.inline, raises: [], tags: [].}

    proc abs(a: Vector2Ref): Vector2Ref {...}{.raises: [], tags: [].}

    proc angle(a: Vector2Ref): float {...}{.raises: [], tags: [].}

    proc cross(a, b: Vector2Ref): float {...}{.raises: [], tags: [].}

    proc cross(a: Vector2Ref; x, y: float): float {...}{.raises: [], tags: [].}

    proc dot(a, b: Vector2Ref): float {...}{.raises: [], tags: [].}

    proc dot(a: Vector2Ref; x, y: float): float {...}{.raises: [], tags: [].}

    proc angleTo(a, b: Vector2Ref): float {...}{.raises: [], tags: [].}

    proc angleTo(a: Vector2Ref; x, y: float): float {...}{.raises: [], tags: [].}

    proc angleToPoint(a, b: Vector2Ref): float {...}{.raises: [], tags: [].}

    proc angleToPoint(a: Vector2Ref; x, y: float): float {...}{.raises: [], tags: [].}

    proc length(a: Vector2Ref): float {...}{.raises: [], tags: [].}

    proc normalize(a: Vector2Ref) {...}{.raises: [], tags: [].}

    proc normalized(a: Vector2Ref): Vector2Ref {...}{.raises: [], tags: [].}

    proc distance(a, b: Vector2Ref): float {...}{.raises: [], tags: [].}

    proc distance(a: Vector2Ref; x, y: float): float {...}{.raises: [], tags: [].}

    proc directionTo(a, b: Vector2Ref): Vector2Ref {...}{.raises: [], tags: [].}

    proc directionTo(a: Vector2Ref; x, y: float): Vector2Ref {...}{.raises: [], tags: [].}

    proc intersects(a, b, c, d: Vector2Ref): bool {...}{.raises: [], tags: [].}

    proc `+`(a, b: Vector2Ref): Vector2Ref {...}{.raises: [], tags: [].}

    proc `-`(a, b: Vector2Ref): Vector2Ref {...}{.raises: [], tags: [].}

    proc `/`(a, b: Vector2Ref): Vector2Ref {...}{.raises: [], tags: [].}

    proc `*`(a, b: Vector2Ref): Vector2Ref {...}{.raises: [], tags: [].}

    proc `*`(x: Vector2Ref; y: float): Vector2Ref {...}{.raises: [], tags: [].}

    proc `+`(x: Vector2Ref; y: float): Vector2Ref {...}{.raises: [], tags: [].}

    proc `-`(x: Vector2Ref; y: float): Vector2Ref {...}{.raises: [], tags: [].}

    proc `/`(x: Vector2Ref; y: float): Vector2Ref {...}{.raises: [], tags: [].}

    proc `*=`(x: var Vector2Ref; y: Vector2Ref) {...}{.raises: [], tags: [].}

    proc `+=`(x: var Vector2Ref; y: Vector2Ref) {...}{.raises: [], tags: [].}

    proc `-=`(x: var Vector2Ref; y: Vector2Ref) {...}{.raises: [], tags: [].}

    proc `/=`(x: var Vector2Ref; y: Vector2Ref) {...}{.raises: [], tags: [].}

    proc `>`(x, y: Vector2Ref): bool {...}{.raises: [], tags: [].}

    proc `<`(x, y: Vector2Ref): bool {...}{.raises: [], tags: [].}

    proc `>=`(x, y: Vector2Ref): bool {...}{.raises: [], tags: [].}

    proc `<=`(x, y: Vector2Ref): bool {...}{.raises: [], tags: [].}

    proc `==`(x, y: Vector2Ref): bool {...}{.raises: [], tags: [].}

    proc `!=`(x, y: Vector2Ref): bool {...}{.raises: [], tags: [].}

    proc `$`(a: Vector2Ref): string {...}{.raises: [], tags: [].}