Package graphics. glimpse. types
Types Functions
Types
A range of values of type
Angle .
Base implementation of a square matrix with a given
dimension .
A common interface for square matrix implementations.
A common interface for vector implementations.
2D vector with coordinates (
x ,
y ).
3D vector with coordinates (
x ,
y ,
z ).
4D vector with coordinates (
x ,
y ,
z ,
w ).
Functions
Computes the cosine of the specified
angle .
Creates a projection matrix for a perspective projection defined by a given frustum.
Returns the magnitude of the given
vector .
Returns the magnitude of the given
vector .
Creates a transformation matrix for mirroring through a plane passing through the
origin point, and perpendicular a given
normal vector.
Returns a unit vector in the direction of the given
vector .
Returns a unit vector in the direction of the given
vector .
Creates a projection matrix for an orthographic (parallel) projection defined by a given set of clipping planes:
left ,
right ,
bottom ,
top ,
near and
far .
Creates a projection matrix for a perspective projection defined by a given frustum.
Creates a transformation matrix for a rotation by a given
angle around a given
axis .
Creates a transformation matrix for a rotation by a given
angle around X axis.
Creates a transformation matrix for a rotation by a given
angle around Y axis.
Creates a transformation matrix for a rotation by a given
angle around Z axis.
Creates a transformation matrix for scaling by a given
scale .
Creates a transformation matrix for scaling by a given scale in
x ,
y and
z directions.
Computes the sine of the specified
angle .
Computes the tangent of the specified
angle .
Creates a transformation matrix for a translation by a given
vector .
Returns a
Vec3 representation of a given
color .
Returns a
Vec3 representation of a given
color .
Returns a
Vec4 representation of a given
color .
Returns a
Vec4 representation of a given
color .