Skip to content

Example code in readme.md #47

@richardeakin

Description

@richardeakin

First, thanks for this library, it seems pretty powerful and I'm looking forward to diving into it.

As I'm only just trying out this library, I noticed that part of the first example doesn't compile:

Vector4 y = new Vector4.splat(4.0); 

Unless I'm mistaken, it seems that I need to either do:

Vector4 y = new Vector4.zero()..splat(4.0);

or (what I think would be better) a named constructor for Vector4.splat() needs to be added.

Other than pi needing to be capitalized and pulled in from dart:math, the rest of the snippets are working for me.

Thanks again!

cheers,
Rich

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions