[][src]Module screen_13::math

Mathmatics types and functions, mostly based on glam-rs.

Also contains some geometric math types.

Structs

Cone

A three-dimensional geometric shape that tapers smoothly from a circular base to a point called the apex.

Mat3

A 3x3 column major matrix.

Mat4

A 4x4 column major matrix.

Plane

A flat two-dimensional surface that extends infinitely far.

Quat
Sphere

A geometrical object in three-dimensional space that is the surface of a ball.

Vec2

A 2-dimensional vector.

Vec3

A 3-dimensional vector without SIMD support.

Vec4

A 4-dimensional vector.

Functions

mat4

Creates a Mat4 from four column vectors.

quat

Creates a Quat from x, y, z and w values.

vec2

Creates a Vec2.

vec2_is_finite

Returns true if the given vector is neither infinite nor NaN.

vec3

Creates a Vec3.

vec3_is_finite

Returns true if the given vector is neither infinite nor NaN.

vec4

Creates a Vec4.

vec4_from_vec3

Creates a Vec4 from a Vec3 and f32 value.

vec4_is_finite

Returns true if the given vector is neither infinite nor NaN.

Type Definitions

Area

A rectangular area with u32 position and size values.

Coord

A coordinate with i32 values.

Coord8

A coordinate with u8 values.

CoordF

A coordinate with f32 values.

Extent

A coordinate with u32 values.

Rect

A rectangular area with u32 position and i32 size values.

RectF

A rectangular area with f32 position and size values.