[][src]Module fpn::cg

cg module provides basic Vector2 Vector3 struct with primitive scalars and also provides FPN inegrated version. Common ops traits are implemented here.

Structs

Vector2

Vector2 provides the common 2D coordinates container Common ops traits are implemented for primitive types and FPN. Vector2 is not Copy, so try use reference when getting borrow conflicts, like

Vector3

Vector3 provides the common 3D coordinates container Common ops traits are implemented for primitive types and FPN. Vector3 is not Copy, so try use reference when getting borrow conflicts, like

Traits

Cross
Dot
Polar

Convert from cartesian cooridates to polar/sphere coordinates

Rotate2

Rotate provide the coordinate conversion by rotation.

Rotate3

Rotate provide the coordinate conversion by rotation.

Functions

f64_polar
f64_sphere

Type Definitions

F64Vector2
F64Vector3
FVector2
FVector3