Changeset a39fd1d for libcfa


Ignore:
Timestamp:
Nov 11, 2019, 2:41:41 PM (5 years ago)
Author:
Dmitry Kobets <dkobets@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
e1a0945
Parents:
b545cad
git-author:
Dmitry Kobets <dkobets@…> (10/11/19 12:16:29)
git-committer:
Dmitry Kobets <dkobets@…> (11/11/19 14:41:41)
Message:

Add unary negation operation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/vector.hfa

    rb545cad ra39fd1d  
    4343vec2 ?/?(const vec2& v, float scalar) with (v) {
    4444    return [x / scalar, y / scalar];
     45}
     46vec2 -?(const vec2& v) with (v) {
     47    return [-x, -y];
    4548}
    4649
     
    9295    return eta * v - (eta * dotValue + sqrt(k)) * n;
    9396}
     97
     98// TODO: I don't quite understand the use-case for faceforward
Note: See TracChangeset for help on using the changeset viewer.