Skip to content
Dima Marhitych edited this page Oct 24, 2023 · 3 revisions

Api to vector module

Import it like this:

import (
    "github.com/dimkauzh/vertex/src/vector"
)

Structs

type Vector2D struct {
  X float32
  Y float32
}

type Vector3D struct {
  X float32
  Y float32
  Z float32
}

Functions

func NewVector2D(x, y float32) -> Vector2D
func NewVector3D(x, y, z float32) -> Vector3D
Clone this wiki locally