Crate cvmath

Source
Expand description

§Computer Vector Graphics Math Library

Re-exports§

pub use crate::mat::Hand::*;
pub use crate::mat::Clip::*;

Structs§

Bounds
Bounds structure.
Deg
Angle (degrees).
Line
Line structure.
Mat2
2D transformation matrix.
Mat3
3D transformation matrix.
Mat4
4D transformation matrix.
Plane
Plane structure.
Quaternion
Quaternion structure.
Rad
Angle (radians).
Ray
Ray structure.
Sphere
Sphere structure.
TraceHit
Trace hit structure.
Transform2
2D affine transformation matrix.
Transform3
3D affine transformation matrix.
Vec2
Vec2 vector.
Vec3
Vec3 vector.
Vec4
Vec4 vector.
W
W component.
X
X component.
Y
Y component.
Z
Z component.

Enums§

Clip
Clip range.
Hand
Handness of the coordinate system.

Traits§

TraceRay
Shapes that support ray intersection tests.

Functions§

Bool2
Bool2 constructor.
Bool3
Bool3 constructor.
Bool4
Bool4 constructor.
Bounds
Bounds constructor.
Bounds2
Bounds2 constructor.
Bounds3
Bounds3 constructor.
Deg
Angle (degrees) constructor.
Line
Line constructor.
Line2
Line2 constructor.
Line3
Line3 constructor.
Mat2
Mat2 constructor.
Mat3
Mat3 constructor.
Mat4
Mat4 constructor.
Plane
Plane constructor.
Point2
Point2 constructor.
Point3
Point3 constructor.
Quaternion
Quaternion constructor.
Rad
Angle (radians) constructor.
Ray
Ray constructor.
Sphere
Sphere constructor.
Transform2
Transform2 constructor.
Transform3
Transform3 constructor.
Vec2
Vec2 constructor.
Vec3
Vec3 constructor.
Vec4
Vec4 constructor.

Type Aliases§

Bool2
Bool2 mask.
Bool3
Bool3 mask.
Bool4
Bool4 mask.
Bounds2
Bounds2 structure.
Bounds3
Bounds3 structure.
Line2
Line2 structure.
Line3
Line3 structure.
Point2
2D point.
Point3
3D point.