Vectors extensions

Home Forums Monkey 2 Code Library Vectors extensions

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  nerobot 2 weeks, 2 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10330

    nerobot
    Participant

    Bring some const into our vectors to simplify code view.

    Before:

    Now:

    Extensions code

    (updated with Mark’s advice):

    #10501

    Mark Sibly
    Keymaster

    Just a quick note that Vec2, Vec3 etc have single component ctors too, eg: New Vec3f( .8 ) is the same as New Vec3f( .8,.8,.8 ).

    #11388

    nerobot
    Participant

    A few helpers for vectors – I started to use them instead of New Vec2_x(...):

    #11467

    nerobot
    Participant
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.