01_user_documentation:07_rgg_xl:02_xl:09_java_addition:overload_operator:02_neg
This is an old revision of the document!
neg
the negative operator - operator$neg is overlaoded for the different Vecmath objects:
- Vector2f
- Vector2d
- Point2f
- Point2d
- Vector3f
- Vector3d
- Point3d
- Point3f
- Vector4d
- Vector4f
- Point4d
- Point4f
The operator create a negated version of the original tuple.
Vector3f a = new Vector3f(1,1,1); Vector3f b = -a; println(b); // return (-1.0, -1.0, -1.0)
01_user_documentation/07_rgg_xl/02_xl/09_java_addition/overload_operator/02_neg.1774623275.txt.gz ยท Last modified: 2026/03/27 15:54 by Tim
