Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions META6.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"perl" : "6.*",
"name" : "Math::Vector",
"version" : "0.5.1",
"description" : "Vector math class",
"provides" : {
"Math::Vector": "lib/Math/Vector.pm"
},
"depends" : [],
"tags" : [ "Math" ],
"source-type" : "git",
"source-url" : "git://github.com/colomon/Math-Vector.git"
}
"name": "Math::Vector",
"description": "Vector math class",
"version": "0.6.1",
"perl": "6.d",
"authors": [
"librasteve"
],
"auth": "zef:librasteve",
"depends": [],
"provides": {
"Math::Vector": "lib/Math/Vector.rakumod"
},
"license": "Artistic-2.0",
"tags": [
"Math",
"Vector"
],
"source-url": "git://github.com/librasteve/Math-Vector.git",
"source-type": "git"
}
12 changes: 0 additions & 12 deletions README

This file was deleted.

26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[![License: Artistic-2.0](https://img.shields.io/badge/License-Artistic%202.0-0298c3.svg)](https://opensource.org/licenses/Artistic-2.0)

# Math::Vector

This is a fork of https://github.com/colomon/Math-Vector from v0.6.0

## SYNOPSIS

```raku
#!/usr/bin/env raku
use Math::Vector;

my $v1 = Math::Vector.new(1, 2, 3);
my $v2 = Math::Vector.new(3, 4, 0);

say "My vector $v1 has {$v1.dim} dimensions"; #^(1, 2, 3)

say ~ ($v1 + $v2); #^(4, 6, 3)
say ~ ($v1 * 2); #^(2, 4, 6)
say ~ ($v1 ⋅ $v2); #11
say ~ ($v1 × $v2); #^(-12, 9, -2)
say ~ (⎡$v1⎤); #3.7416573867739413
say ~ (-$v1); #^(-1, -2, -3)
say ~ ($v1 cmp $v2); #Less
```

17 changes: 17 additions & 0 deletions bin/synopsis-mv.raku
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env raku
use Math::Vector;

my $v1 = Math::Vector.new(1, 2, 3);
my $v2 = Math::Vector.new(3, 4, 0);

say "My vector $v1 has {$v1.dim} dimensions"; #^(1, 2, 3)

say ~ ($v1 + $v2); #^(4, 6, 3)
say ~ ($v1 * 2); #^(2, 4, 6)
say ~ ($v1 ⋅ $v2); #11
say ~ ($v1 × $v2); #^(-12, 9, -2)
say ~ (⎡$v1⎤); #3.7416573867739413
say ~ (-$v1); #^(-1, -2, -3)
say ~ ($v1 cmp $v2); #Less


1 change: 0 additions & 1 deletion deps.proto

This file was deleted.

165 changes: 0 additions & 165 deletions lib/Math/Vector.pm

This file was deleted.

Loading