[go: nahoru, domu]

Skip to content

The Geometry Numerics

Justin edited this page Feb 24, 2022 · 5 revisions

This page refers to the objects found in the CGALDotNetGeometry.Numerics namespace.

CGALDotNet provides a number of Numerics such as vectors, matrices and points to perform general linear algebra and to pass data to CGAL. All the numerics consist of a float and double versions. For example the class Point2f defines a 2D point with float precision and the class Point2d defines a 2D point with double precision.

The following is a example of a point transformation.

//create a new point.
var point = new Point3d(1, 2, 3);

//create a matrix that will translate the point.
var matrix = Matrix4d4.Translation(new Point3d(0, 0, 1);

//transform the point.
var newPoint = matrix * point;

The CGALDotNetGeomtry project is separate from CGALDotNet and can be used as a stand alone project under the MIT license.

Clone this wiki locally