Giter Club home page Giter Club logo

Comments (2)

xeolabs avatar xeolabs commented on July 22, 2024

Yes I was wondering whether I should be doing that - only reason I used the non-array form was for consistency with other scalar properties, for example on XEO.PlaneGeometry, which has properties like xSegments and ySegments (see screenshot from XEO.PlaneGeometry API docs below):

screenshot from 2016-01-13 10 50 03

Would be interested though what use cases you've found for having arrays, might be worth breaking that consistency if they're compelling..

from xeogl.

 avatar commented on July 22, 2024

I was really comparing to the xyz array of XEO.Transforms. But overall I like using objects and properties better than arrays because they are more descriptive - for example: size.x, segments.x, xyz.x.

from xeogl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.