Crate hexga_math

Source

Re-exports§

pub use hexga_typedef as typedef;
pub use hexga_number as number;

Modules§

angle
grid
grid_param
matrix
prefix
Contains some common prefix, such as [Kilo], [Milli], [Tera]
prelude
rectangle
time
vector

Macros§

impl_fixed_array_like
impl_fixed_array_like_display
impl_fixed_array_like_op
impl_fixed_array_like_op_assign
impl_fixed_array_like_op_binary
impl_fixed_array_like_op_binary_composite
impl_fixed_array_like_op_binary_non_composite
impl_fixed_array_like_with_op
impl_generic_array_like
impl_generic_array_like_display
impl_generic_array_like_op
impl_generic_array_like_op_assign
impl_generic_array_like_op_binary
impl_generic_array_like_op_binary_composite
impl_generic_array_like_op_binary_non_composite
impl_generic_array_like_with_op

Structs§

CoefWrapper
Wrap the coef inside for a new type. Used to differenciate the type Coef and float because they are the same
ColorHSLAOf
ColorRGBAOf

Traits§

Absolute
ArrayLike
ArrayLikeExtension
CastBool
CastFloat
CastFrom
Might lose some precision. Same semantics as the as keyword: 4f32 as u64
CastInteger
CastIntegerSigned
CastIntegerUnsigned
CastInto
Might lose some precision. Same semantics as the as keyword: 4f32 as u64
CastIntoComposite
Might lose some precision. Same semantics as the as keyword: 4f32 as u64
CastNumber
CastPrimitive
DefaultRange
For floating the range is : [0., 1.]. For integers the range is : [0, MAX], even for signed
ExtensionArrayToTuple
ExtensionAsArray
ExtensionAsArrayMut
ExtensionAsSlice
ExtensionAsSliceMut
ExtensionFromArray
ExtensionToArray
FloatingNumber
Generalized function and constant for floating point like f32, f64
FromCoef
IColor
Lerpable
OddOrEven
PartialOrdExtension
Position
PositiveOrNegative
RotationX
RotationY
RotationZ
TakeHalf
ToCoef
ToColorRep
ToF32
ToF64
ToFloat
ToI8
ToI16
ToI32
ToI64
ToISize
ToInt
ToSigned
For type that have a signed equivalent
ToU8
ToU16
ToU32
ToU64
ToUInt
ToUSize
ToUnsigned
For type that have an unsigned equivalent
ToVectorFilled
Two
Define the 2 representation for the number

Type Aliases§

Coef
Same as float, but just to mark the different use case.
Color
ColorRGBAOf<float>
ColorByte
ColorHSLA
ColorRGBA
ColorRGBAOf<float>
ColorRGBAByte
float
Default unsigned floating type
int
Default signed integer type
uint
Default unsigned integer type