Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.
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