Noiseless Party Machine

    triangle-area-fast

    0.0.25 • Public • Published

    triangle-area-fast

    quickly get the area of a 3d triangle (using cross-product)

    Installation

    npm i triangle-area-fast

    Usage

    var taf = require('triangle-area-fast');
    
    //triangle is 3 pts [x,y,z]
    var triangle = [[0,0,1],[1,0,1],[1,1,1]];
    
    var area = taf(triangle);
    
    console.log(area);
    
    //returns area of triangle:
    //0.5

    See Also

    stonks

    Install

    npm i triangle-area-fast

    DownloadsWeekly Downloads

    5

    Version

    0.0.25

    License

    CC0-1.0

    Unpacked Size

    2.07 kB

    Total Files

    4

    Last publish

    Collaborators

    • stonkpunk