Dart Documentationorson_chartsUtils3D

Utils3D class

A collecion of utility methods.

Static Methods

num length(Point3D v) #

Returns the length of a vector v.

Point3D normalise(Point3D v) #

Returns a normalised form of the vector v.

Point3D normal(Point3D a, Point3D b, Point3D c) #

Returns a normal vector for the face defined by the points a, b and c.

num angle(Point3D a, Point3D b) #

Returns the angle between two vectors a and b.

num scalarprod(Point3D a, Point3D b) #

Returns the scalar product of two vectors a and b.