Ignore:
Timestamp:
Dec 31, 2019, 12:19:53 PM (2 years ago)
Author:
Dmitry Kobets <dkobets@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
f8a8fb1
Parents:
94df8de
git-author:
Dmitry Kobets <dkobets@…> (12/31/19 12:13:34)
git-committer:
Dmitry Kobets <dkobets@…> (12/31/19 12:19:53)
Message:

Refactor vector library classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/vec/vec.hfa

    r94df8de r250dbae  
    7474}
    7575
    76 
    7776forall(otype T, otype V | { T length(V); V ?/?(V, T); })
    7877V normalize(V v) {
     
    114113// i is the incident vector
    115114// ng is the geometric normal of the surface
    116 /* forall(| add(T) | multiply(T) | lessthan(T) | fromint(T) | subtract(T)) */
    117115forall(otype T | lessthan(T) | zeroinit(T), otype V | dottable(V, T) | negate(V))
    118116V faceforward(V n, V i, V ng) {
Note: See TracChangeset for help on using the changeset viewer.