Remove trailing whitespace
This commit is contained in:
8
Makefile
8
Makefile
@@ -12,13 +12,13 @@ endif
|
|||||||
|
|
||||||
# Targets
|
# Targets
|
||||||
default:
|
default:
|
||||||
$(MAKE) -f Makefile.$(MAKEFILE)
|
$(MAKE) -f Makefile.$(MAKEFILE)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(MAKE) -f Makefile.$(MAKEFILE) all
|
$(MAKE) -f Makefile.$(MAKEFILE) all
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
$(MAKE) -f Makefile.$(MAKEFILE) dist
|
$(MAKE) -f Makefile.$(MAKEFILE) dist
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -f Makefile.$(MAKEFILE) clean
|
$(MAKE) -f Makefile.$(MAKEFILE) clean
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# GNU makefile
|
# GNU makefile
|
||||||
|
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# GNU makefile
|
# GNU makefile
|
||||||
|
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# GNU makefile
|
# GNU makefile
|
||||||
|
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ The BH_Algo library provides a set of algorithms for working with data:
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Value swapping (L</BH_Swap>)
|
Value swapping (L</BH_Swap>)
|
||||||
|
|
||||||
@@ -35,18 +35,18 @@ Value swapping (L</BH_Swap>)
|
|||||||
|
|
||||||
Array partitioning (L</BH_Partition>)
|
Array partitioning (L</BH_Partition>)
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Sorting (L</BH_Sort>)
|
Sorting (L</BH_Sort>)
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Heap operations (L</BH_HeapMake>, L</BH_HeapRemove>, L</BH_HeapInsert>,
|
Heap operations (L</BH_HeapMake>, L</BH_HeapRemove>, L</BH_HeapInsert>,
|
||||||
L</BH_HeapReplace>)
|
L</BH_HeapReplace>)
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
These algorithms allow you to efficiently perform various operations on arrays
|
These algorithms allow you to efficiently perform various operations on arrays
|
||||||
and other data structures.
|
and other data structures.
|
||||||
|
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ I<size>.
|
|||||||
BH_EqualCallback equal);
|
BH_EqualCallback equal);
|
||||||
|
|
||||||
Partitions the array of elements I<array> (with the number of elements I<size>
|
Partitions the array of elements I<array> (with the number of elements I<size>
|
||||||
and the size of the element I<element>) into two groups relative to the pivot
|
and the size of the element I<element>) into two groups relative to the pivot
|
||||||
element I<pivot>.
|
element I<pivot>.
|
||||||
|
|
||||||
The I<equal> parameter takes a pointer to a function that compares two elements.
|
The I<equal> parameter takes a pointer to a function that compares two elements.
|
||||||
@@ -90,7 +90,7 @@ the second group.
|
|||||||
size_t element,
|
size_t element,
|
||||||
BH_EqualCallback equal);
|
BH_EqualCallback equal);
|
||||||
|
|
||||||
Sorts the array of elements I<array> (with the number of elements I<size> and
|
Sorts the array of elements I<array> (with the number of elements I<size> and
|
||||||
the size of the element I<element>).
|
the size of the element I<element>).
|
||||||
|
|
||||||
The I<equal> parameter takes a pointer to a function that compares two elements.
|
The I<equal> parameter takes a pointer to a function that compares two elements.
|
||||||
@@ -103,7 +103,7 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
|
|||||||
size_t element,
|
size_t element,
|
||||||
BH_EqualCallback equal);
|
BH_EqualCallback equal);
|
||||||
|
|
||||||
Creates a heap in the array I<array> (with the number of elements I<size> and
|
Creates a heap in the array I<array> (with the number of elements I<size> and
|
||||||
the size of the element I<element>).
|
the size of the element I<element>).
|
||||||
|
|
||||||
The I<equal> parameter takes a pointer to a function that compares two elements.
|
The I<equal> parameter takes a pointer to a function that compares two elements.
|
||||||
@@ -116,7 +116,7 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
|
|||||||
size_t element,
|
size_t element,
|
||||||
BH_EqualCallback equal);
|
BH_EqualCallback equal);
|
||||||
|
|
||||||
Extracts the top element of the heap in the array I<array> (with the number of
|
Extracts the top element of the heap in the array I<array> (with the number of
|
||||||
elements I<size> and the size of the element I<element>).
|
elements I<size> and the size of the element I<element>).
|
||||||
|
|
||||||
The I<equal> parameter takes a pointer to a function that compares two elements.
|
The I<equal> parameter takes a pointer to a function that compares two elements.
|
||||||
@@ -133,7 +133,7 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
|
|||||||
Adds the element I<value> to the heap in the array I<array> (with the number of
|
Adds the element I<value> to the heap in the array I<array> (with the number of
|
||||||
elements I<size> and the size of the element I<element>).
|
elements I<size> and the size of the element I<element>).
|
||||||
|
|
||||||
If I<value> is NULL, it is assumed that the new value is at the end of the
|
If I<value> is NULL, it is assumed that the new value is at the end of the
|
||||||
array.
|
array.
|
||||||
|
|
||||||
The I<equal> parameter takes a pointer to a function that compares two elements.
|
The I<equal> parameter takes a pointer to a function that compares two elements.
|
||||||
@@ -147,11 +147,11 @@ The I<equal> parameter takes a pointer to a function that compares two elements.
|
|||||||
size_t element,
|
size_t element,
|
||||||
BH_EqualCallback equal);
|
BH_EqualCallback equal);
|
||||||
|
|
||||||
Extracts the top element of the heap in the array I<array> (with the number of
|
Extracts the top element of the heap in the array I<array> (with the number of
|
||||||
elements I<size> and the size of the element I<element>) and adds the element
|
elements I<size> and the size of the element I<element>) and adds the element
|
||||||
I<value> to it.
|
I<value> to it.
|
||||||
|
|
||||||
If I<value> is NULL, it is assumed that the new value is at the end of the
|
If I<value> is NULL, it is assumed that the new value is at the end of the
|
||||||
array.
|
array.
|
||||||
|
|
||||||
The I<equal> parameter takes a pointer to a function that compares two elements.
|
The I<equal> parameter takes a pointer to a function that compares two elements.
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ BH_Args - command line argument processing
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Args library is designed for convenient handling of command line
|
The BH_Args library is designed for convenient handling of command line
|
||||||
arguments in programs. It allows you to define a set of options that can be
|
arguments in programs. It allows you to define a set of options that can be
|
||||||
specified when starting a program and provides mechanisms for their analysis and
|
specified when starting a program and provides mechanisms for their analysis and
|
||||||
processing.
|
processing.
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ If the I<padding> parameter is 0, the default value (30) will be used.
|
|||||||
The I<key> field contains the option identifier. If the I<key> identifier is a
|
The I<key> field contains the option identifier. If the I<key> identifier is a
|
||||||
printable ASCII character, it will be used as a short argument.
|
printable ASCII character, it will be used as a short argument.
|
||||||
|
|
||||||
The optional I<name> field contains a string that will be used as a long
|
The optional I<name> field contains a string that will be used as a long
|
||||||
argument.
|
argument.
|
||||||
|
|
||||||
The I<flags> field contains argument flags. A combination of the following flags
|
The I<flags> field contains argument flags. A combination of the following flags
|
||||||
@@ -155,7 +155,7 @@ The argument value is optional.
|
|||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
The I<description> field contains a string that will be used when displaying
|
The I<description> field contains a string that will be used when displaying
|
||||||
help information using the L</BH_ArgsHelp> function.
|
help information using the L</BH_ArgsHelp> function.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ BH_Box2f - two-dimensional bounding box
|
|||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Box2f module provides functions for working with two-dimensional bounding
|
The BH_Box2f module provides functions for working with two-dimensional bounding
|
||||||
boxes. It includes operations for union, intersection, checking if a point is
|
boxes. It includes operations for union, intersection, checking if a point is
|
||||||
inside a rectangle, and calculating the bounding box for a set of points.
|
inside a rectangle, and calculating the bounding box for a set of points.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Box3f - three-dimensional bounding box
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math/Box3f.h>
|
#include <BH/Math/Box3f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Box3f module provides functions for working with three-dimensional
|
The BH_Box3f module provides functions for working with three-dimensional
|
||||||
bounding boxes. It includes operations for union, intersection, checking if a
|
bounding boxes. It includes operations for union, intersection, checking if a
|
||||||
point is inside a box, and calculating the bounding box for a set of points.
|
point is inside a box, and calculating the bounding box for a set of points.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Hashmap - unordered associative array
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Hashmap.h>
|
#include <BH/Hashmap.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Hashmap library provides an implementation of an unordered associative
|
The BH_Hashmap library provides an implementation of an unordered associative
|
||||||
array based on a hash table. It allows you to store and retrieve data by key
|
array based on a hash table. It allows you to store and retrieve data by key
|
||||||
efficiently.
|
efficiently.
|
||||||
|
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ Returns the maximum load factor.
|
|||||||
|
|
||||||
Sets the maximum load factor I<factor>.
|
Sets the maximum load factor I<factor>.
|
||||||
|
|
||||||
The new value of the maximum load factor will be applied on the next call to
|
The new value of the maximum load factor will be applied on the next call to
|
||||||
L</BH_HashmapInsert> or L</BH_HashmapReserve>.
|
L</BH_HashmapInsert> or L</BH_HashmapReserve>.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ BH_Line - a straight line on a plane.
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Line module provides functions for working with straight lines on a
|
The BH_Line module provides functions for working with straight lines on a
|
||||||
plane. It allows you to calculate the coefficients of a line based on two
|
plane. It allows you to calculate the coefficients of a line based on two
|
||||||
points, find the distance from a point to a line, and determine the closest
|
points, find the distance from a point to a line, and determine the closest
|
||||||
point on the line to a given point.
|
point on the line to a given point.
|
||||||
|
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ point on the line to a given point.
|
|||||||
const float b[2],
|
const float b[2],
|
||||||
float out[3]);
|
float out[3]);
|
||||||
|
|
||||||
Calculates the coefficients of a line on a plane based on two points I<a> and
|
Calculates the coefficients of a line on a plane based on two points I<a> and
|
||||||
I<b>.
|
I<b>.
|
||||||
|
|
||||||
The I<out> parameter describes the resulting line on the plane.
|
The I<out> parameter describes the resulting line on the plane.
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ BH_Mat3f - a real 3x3 matrix
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math/Mat3f.h>
|
#include <BH/Math/Mat3f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Mat3f module provides a set of functions for working with real 3x3
|
The BH_Mat3f module provides a set of functions for working with real 3x3
|
||||||
matrices.
|
matrices.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,15 +9,15 @@ BH_Mat4f - real 4x4 matrix
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math/Mat4f.h>
|
#include <BH/Math/Mat4f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Mat4f module provides a set of functions for working with real 4x4
|
The BH_Mat4f module provides a set of functions for working with real 4x4
|
||||||
matrices. These functions allow you to perform various operations on matrices,
|
matrices. These functions allow you to perform various operations on matrices,
|
||||||
such as addition, subtraction, multiplication, transposition, determinant
|
such as addition, subtraction, multiplication, transposition, determinant
|
||||||
calculation, and others.
|
calculation, and others.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ BH_Math - Mathematical functions
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Math library provides a set of mathematical functions for various
|
The BH_Math library provides a set of mathematical functions for various
|
||||||
calculations.
|
calculations.
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ calculations.
|
|||||||
=head2 BH_Lerpf
|
=head2 BH_Lerpf
|
||||||
|
|
||||||
float BH_Lerpf(float a,
|
float BH_Lerpf(float a,
|
||||||
float b,
|
float b,
|
||||||
float t);
|
float t);
|
||||||
|
|
||||||
Interpolates the value between I<a> and I<b> with a given coefficient I<t>.
|
Interpolates the value between I<a> and I<b> with a given coefficient I<t>.
|
||||||
@@ -39,7 +39,7 @@ Interpolates the value between I<a> and I<b> with a given coefficient I<t>.
|
|||||||
const float point[3],
|
const float point[3],
|
||||||
float out[3]);
|
float out[3]);
|
||||||
|
|
||||||
Calculates the barycentric coordinates of the I<point> relative to the
|
Calculates the barycentric coordinates of the I<point> relative to the
|
||||||
triangle defined by points I<a>, I<b>, I<c>.
|
triangle defined by points I<a>, I<b>, I<c>.
|
||||||
|
|
||||||
The I<out> parameter describes the resulting vector.
|
The I<out> parameter describes the resulting vector.
|
||||||
|
|||||||
@@ -9,15 +9,15 @@ BH_Plane - Plane in space
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Plane module provides functions for working with planes in
|
The BH_Plane module provides functions for working with planes in
|
||||||
three-dimensional space. It allows you to calculate the coefficients of a plane
|
three-dimensional space. It allows you to calculate the coefficients of a plane
|
||||||
from three points, determine the distance from a point to a plane, and find the
|
from three points, determine the distance from a point to a plane, and find the
|
||||||
closest point on the plane to a given point.
|
closest point on the plane to a given point.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,16 +9,16 @@ BH_Quat - Quaternion
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math/Quat.h>
|
#include <BH/Math/Quat.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
This module provides a set of functions for working with quaternions.
|
This module provides a set of functions for working with quaternions.
|
||||||
Quaternions are used to represent rotations in three-dimensional space and have
|
Quaternions are used to represent rotations in three-dimensional space and have
|
||||||
advantages over other methods, such as rotation matrices or Euler angles, in
|
advantages over other methods, such as rotation matrices or Euler angles, in
|
||||||
terms of stability against error accumulation during multiple rotation
|
terms of stability against error accumulation during multiple rotation
|
||||||
operations.
|
operations.
|
||||||
|
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ The parameter I<out> describes the resulting quaternion.
|
|||||||
#define BH_Quat4fLerp(a, b, t, out) \
|
#define BH_Quat4fLerp(a, b, t, out) \
|
||||||
BH_Vec4fLerp(a, b, t, out)
|
BH_Vec4fLerp(a, b, t, out)
|
||||||
|
|
||||||
Performs linear interpolation between two quaternions I<a> and I<b> with
|
Performs linear interpolation between two quaternions I<a> and I<b> with
|
||||||
parameter I<t>.
|
parameter I<t>.
|
||||||
|
|
||||||
The parameter I<out> describes the resulting quaternion.
|
The parameter I<out> describes the resulting quaternion.
|
||||||
@@ -149,7 +149,7 @@ The parameter I<out> describes the resulting quaternion.
|
|||||||
float t,
|
float t,
|
||||||
float out[4]);
|
float out[4]);
|
||||||
|
|
||||||
Performs spherical linear interpolation between two quaternions I<a> and I<b>
|
Performs spherical linear interpolation between two quaternions I<a> and I<b>
|
||||||
with parameter I<t>.
|
with parameter I<t>.
|
||||||
|
|
||||||
The parameter I<out> describes the resulting quaternion.
|
The parameter I<out> describes the resulting quaternion.
|
||||||
@@ -176,7 +176,7 @@ The parameter I<out> describes the resulting quaternion.
|
|||||||
float angle,
|
float angle,
|
||||||
float out[4]);
|
float out[4]);
|
||||||
|
|
||||||
Calculates the quaternion from rotation around the I<axis> with the given
|
Calculates the quaternion from rotation around the I<axis> with the given
|
||||||
I<angle>.
|
I<angle>.
|
||||||
|
|
||||||
The parameter I<out> describes the resulting quaternion.
|
The parameter I<out> describes the resulting quaternion.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ BH_Queue - queue container
|
|||||||
|
|
||||||
The BH_Queue module provides an implementation of a queue container that allows
|
The BH_Queue module provides an implementation of a queue container that allows
|
||||||
adding elements to the end and removing them from the beginning. The queue is
|
adding elements to the end and removing them from the beginning. The queue is
|
||||||
based on a dynamic array, which ensures efficient memory usage and fast access
|
based on a dynamic array, which ensures efficient memory usage and fast access
|
||||||
to elements.
|
to elements.
|
||||||
|
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ to elements.
|
|||||||
|
|
||||||
Creates a queue.
|
Creates a queue.
|
||||||
|
|
||||||
If successful, the function returns a pointer to a new BH_Queue object, or NULL
|
If successful, the function returns a pointer to a new BH_Queue object, or NULL
|
||||||
in case of an error.
|
in case of an error.
|
||||||
|
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ Clears the queue.
|
|||||||
|
|
||||||
=head2 BH_QueueReserve
|
=head2 BH_QueueReserve
|
||||||
|
|
||||||
int BH_QueueReserve(BH_Queue *queue,
|
int BH_QueueReserve(BH_Queue *queue,
|
||||||
size_t size);
|
size_t size);
|
||||||
|
|
||||||
Reserves space for at least I<size> elements.
|
Reserves space for at least I<size> elements.
|
||||||
@@ -62,7 +62,7 @@ If successful, the function returns 0; otherwise, it returns an error code.
|
|||||||
|
|
||||||
=head2 BH_QueueInsert
|
=head2 BH_QueueInsert
|
||||||
|
|
||||||
int BH_QueueInsert(BH_Queue *queue,
|
int BH_QueueInsert(BH_Queue *queue,
|
||||||
void *value);
|
void *value);
|
||||||
|
|
||||||
Inserts an element I<value>.
|
Inserts an element I<value>.
|
||||||
@@ -83,7 +83,7 @@ Calling this function invalidates existing iterators.
|
|||||||
|
|
||||||
=head2 BH_QueueFront
|
=head2 BH_QueueFront
|
||||||
|
|
||||||
int BH_QueueFront(BH_Queue *queue,
|
int BH_QueueFront(BH_Queue *queue,
|
||||||
void **value);
|
void **value);
|
||||||
|
|
||||||
Returns the first element of the queue.
|
Returns the first element of the queue.
|
||||||
@@ -116,7 +116,7 @@ Returns the capacity.
|
|||||||
|
|
||||||
=head2 BH_QueueIterNext
|
=head2 BH_QueueIterNext
|
||||||
|
|
||||||
void *BH_QueueIterNext(BH_Queue *queue,
|
void *BH_QueueIterNext(BH_Queue *queue,
|
||||||
void *iter);
|
void *iter);
|
||||||
|
|
||||||
Returns an iterator to the next element.
|
Returns an iterator to the next element.
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Ray2f, BH_Segment2f - Ray/segment on a plane
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math/Ray2f.h>
|
#include <BH/Math/Ray2f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
This module provides functions for working with rays and segments on a plane.
|
This module provides functions for working with rays and segments on a plane.
|
||||||
It includes functions for checking intersections between rays, segments, lines,
|
It includes functions for checking intersections between rays, segments, lines,
|
||||||
and bounding rectangles.
|
and bounding rectangles.
|
||||||
|
|
||||||
|
|
||||||
@@ -59,10 +59,10 @@ The parameters I<aStart> and I<aDirection> describe the first ray.
|
|||||||
|
|
||||||
The parameters I<bStart> and I<bDirection> describe the second ray.
|
The parameters I<bStart> and I<bDirection> describe the second ray.
|
||||||
|
|
||||||
The parameter I<time1> describes the resulting intersection time of the first
|
The parameter I<time1> describes the resulting intersection time of the first
|
||||||
ray.
|
ray.
|
||||||
|
|
||||||
The parameter I<time2> describes the resulting intersection time of the second
|
The parameter I<time2> describes the resulting intersection time of the second
|
||||||
ray.
|
ray.
|
||||||
|
|
||||||
If successful, the function returns 0, otherwise it returns an error code.
|
If successful, the function returns 0, otherwise it returns an error code.
|
||||||
@@ -148,7 +148,7 @@ The parameters I<aStart> and I<aEnd> describe the first segment.
|
|||||||
|
|
||||||
The parameters I<bStart> and I<bEnd> describe the second segment.
|
The parameters I<bStart> and I<bEnd> describe the second segment.
|
||||||
|
|
||||||
The parameter I<t> describes the resulting intersection time of the first
|
The parameter I<t> describes the resulting intersection time of the first
|
||||||
segment.
|
segment.
|
||||||
|
|
||||||
The parameter I<out> describes the resulting intersection point.
|
The parameter I<out> describes the resulting intersection point.
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Ray3f, BH_Segment3f - ray/segment in space
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math/Ray3f.h>
|
#include <BH/Math/Ray3f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
This module provides functions for working with rays and segments in
|
This module provides functions for working with rays and segments in
|
||||||
three-dimensional space. It includes methods for checking intersections of rays
|
three-dimensional space. It includes methods for checking intersections of rays
|
||||||
and segments with planes, triangles, and bounding boxes.
|
and segments with planes, triangles, and bounding boxes.
|
||||||
|
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ The parameters I<aStart> and I<aDirection> describe the ray.
|
|||||||
|
|
||||||
The parameters I<bMin> and I<bMax> describe the bounding box.
|
The parameters I<bMin> and I<bMax> describe the bounding box.
|
||||||
|
|
||||||
The parameter I<t> describes the resulting time of the first segment's
|
The parameter I<t> describes the resulting time of the first segment's
|
||||||
intersection.
|
intersection.
|
||||||
|
|
||||||
The parameter I<out> describes the resulting point of intersection.
|
The parameter I<out> describes the resulting point of intersection.
|
||||||
@@ -149,7 +149,7 @@ The parameters I<aStart> and I<aEnd> describe the segment.
|
|||||||
|
|
||||||
The parameters I<bMin> and I<bMax> describe the bounding box.
|
The parameters I<bMin> and I<bMax> describe the bounding box.
|
||||||
|
|
||||||
The parameter I<t> describes the resulting time of the first segment's
|
The parameter I<t> describes the resulting time of the first segment's
|
||||||
intersection.
|
intersection.
|
||||||
|
|
||||||
The parameter I<out> describes the resulting point of intersection.
|
The parameter I<out> describes the resulting point of intersection.
|
||||||
|
|||||||
@@ -15,18 +15,18 @@ BH_String - Working with strings
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_String library provides a set of functions for working with strings,
|
The BH_String library provides a set of functions for working with strings,
|
||||||
including converting numbers to strings and back.
|
including converting numbers to strings and back.
|
||||||
|
|
||||||
|
|
||||||
=head1 DEFINING THE BASE
|
=head1 DEFINING THE BASE
|
||||||
|
|
||||||
The functions of the I<StringToInt> family have an algorithm for determining the
|
The functions of the I<StringToInt> family have an algorithm for determining
|
||||||
base of a number by string prefixes:
|
the base of a number by string prefixes:
|
||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
If the prefix I<0b>, then base 2
|
If the prefix I<0b>, then base 2
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ Otherwise, base 10.
|
|||||||
Formats a real number I<value> into a null-terminated string I<string>
|
Formats a real number I<value> into a null-terminated string I<string>
|
||||||
(with a length limit of I<size>).
|
(with a length limit of I<size>).
|
||||||
|
|
||||||
The I<format> parameter specifies the format for converting a number to a
|
The I<format> parameter specifies the format for converting a number to a
|
||||||
string. Acceptable formats:
|
string. Acceptable formats:
|
||||||
|
|
||||||
=over
|
=over
|
||||||
@@ -80,9 +80,9 @@ Fixed or scientific format, depending on which one is shorter.
|
|||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
The I<precision> parameter sets the precision of converting a number to a
|
The I<precision> parameter sets the precision of converting a number to a
|
||||||
string. If the accuracy value is negative, the conversion will be performed with
|
string. If the accuracy value is negative, the conversion will be performed with
|
||||||
the minimum required accuracy so that the reverse conversion results in the
|
the minimum required accuracy so that the reverse conversion results in the
|
||||||
original number.
|
original number.
|
||||||
|
|
||||||
The optional parameter I<actual> returns the length of the recorded string.
|
The optional parameter I<actual> returns the length of the recorded string.
|
||||||
@@ -100,8 +100,8 @@ If successful, it returns 0 or an error code.
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats an 8-bit signed integer I<value> into a null-terminated string
|
Formats an 8-bit signed integer I<value> into a null-terminated string
|
||||||
I<string> (with a length limit of I<size>).
|
I<string> (with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -118,8 +118,8 @@ If successful, it returns 0 or an error code.
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats a 16-bit signed integer I<value> into a null-terminated string I<string>
|
Formats a 16-bit signed integer I<value> into a null-terminated string I<string>
|
||||||
(with a length limit of I<size>).
|
(with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ If successful, it returns 0 or an error code.
|
|||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats a 32-bit signed integer I<value> into a null-terminated string I<string>
|
Formats a 32-bit signed integer I<value> into a null-terminated string I<string>
|
||||||
(with a length limit of I<size>).
|
(with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ If successful, it returns 0 or an error code.
|
|||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats a 64-bit signed integer I<value> into a null-terminated string I<string>
|
Formats a 64-bit signed integer I<value> into a null-terminated string I<string>
|
||||||
(with a length limit of I<size>).
|
(with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -172,8 +172,8 @@ If successful, it returns 0 or an error code.
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats an 8-bit unsigned integer I<value> into a null-terminated string
|
Formats an 8-bit unsigned integer I<value> into a null-terminated string
|
||||||
I<string> (with a length limit of I<size>).
|
I<string> (with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -190,8 +190,8 @@ If successful, it returns 0 or an error code.
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats a 16-bit unsigned integer I<value> into a null-terminated string
|
Formats a 16-bit unsigned integer I<value> into a null-terminated string
|
||||||
I<string> (with a length limit of I<size>).
|
I<string> (with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -208,8 +208,8 @@ If successful, it returns 0 or an error code.
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats a 32-bit unsigned integer I<value> into a null-terminated string
|
Formats a 32-bit unsigned integer I<value> into a null-terminated string
|
||||||
I<string> (with a length limit of I<size>).
|
I<string> (with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -226,8 +226,8 @@ If successful, it returns 0 or an error code.
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Formats a 64-bit unsigned integer I<value> into a null-terminated string
|
Formats a 64-bit unsigned integer I<value> into a null-terminated string
|
||||||
I<string> (with a length limit of I<size>).
|
I<string> (with a length limit of I<size>).
|
||||||
|
|
||||||
The I<base> parameter sets the base for the conversion.
|
The I<base> parameter sets the base for the conversion.
|
||||||
|
|
||||||
@@ -243,8 +243,8 @@ If successful, it returns 0 or an error code.
|
|||||||
|
|
||||||
Converts the string I<string> to a real number.
|
Converts the string I<string> to a real number.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
If successful, it returns the converted number or 0.
|
If successful, it returns the converted number or 0.
|
||||||
|
|
||||||
@@ -257,8 +257,8 @@ If successful, it returns the converted number or 0.
|
|||||||
|
|
||||||
Converts the string I<string> to an 8-bit signed integer.
|
Converts the string I<string> to an 8-bit signed integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
@@ -273,8 +273,8 @@ If successful, it returns the converted number or 0.
|
|||||||
|
|
||||||
Converts the string I<string> to a signed 16-bit integer.
|
Converts the string I<string> to a signed 16-bit integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
@@ -289,8 +289,8 @@ If successful, it returns the converted number or 0.
|
|||||||
|
|
||||||
Converts the string I<string> to a signed 32-bit integer.
|
Converts the string I<string> to a signed 32-bit integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ If successful, it returns the converted number or 0.
|
|||||||
Converts the string I<string> to a signed 64-bit integer.
|
Converts the string I<string> to a signed 64-bit integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
@@ -322,7 +322,7 @@ If successful, it returns the converted number or 0.
|
|||||||
Converts the string I<string> to an unsigned 8-bit integer.
|
Converts the string I<string> to an unsigned 8-bit integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
@@ -338,7 +338,7 @@ If successful, it returns the converted number or 0.
|
|||||||
Converts the string I<string> to an unsigned 16-bit integer.
|
Converts the string I<string> to an unsigned 16-bit integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
@@ -354,7 +354,7 @@ If successful, it returns the converted number or 0.
|
|||||||
Converts the string I<string> to an unsigned 32-bit integer.
|
Converts the string I<string> to an unsigned 32-bit integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
@@ -370,7 +370,7 @@ If successful, it returns the converted number or 0.
|
|||||||
Converts the string I<string> to an unsigned 64-bit integer.
|
Converts the string I<string> to an unsigned 64-bit integer.
|
||||||
|
|
||||||
The optional parameter I<size> returns the number of characters read from the
|
The optional parameter I<size> returns the number of characters read from the
|
||||||
string.
|
string.
|
||||||
|
|
||||||
The optional parameter I<base> specifies the base of the number.
|
The optional parameter I<base> specifies the base of the number.
|
||||||
|
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Thread - multithreading and synchronization primitives
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Thread.h>
|
#include <BH/Thread.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Thread library provides a set of functions for working with
|
The BH_Thread library provides a set of functions for working with
|
||||||
multithreading and thread synchronization. It includes functions for creating
|
multithreading and thread synchronization. It includes functions for creating
|
||||||
and managing threads, working with mutexes, semaphores, condition variables, and
|
and managing threads, working with mutexes, semaphores, condition variables, and
|
||||||
spinlocks.
|
spinlocks.
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ a change in the condition.
|
|||||||
|
|
||||||
In some situations, the signal of a condition change may be false.
|
In some situations, the signal of a condition change may be false.
|
||||||
|
|
||||||
The I<mutex> parameter specifies the mutex used in conjunction with the
|
The I<mutex> parameter specifies the mutex used in conjunction with the
|
||||||
condition variable.
|
condition variable.
|
||||||
|
|
||||||
Returns 0 on success, otherwise an error code.
|
Returns 0 on success, otherwise an error code.
|
||||||
@@ -211,7 +211,7 @@ signals a change in the condition within a specified time I<timeout>.
|
|||||||
|
|
||||||
In some situations, the signal of a condition change may be false.
|
In some situations, the signal of a condition change may be false.
|
||||||
|
|
||||||
The I<mutex> parameter specifies the mutex used in conjunction with the
|
The I<mutex> parameter specifies the mutex used in conjunction with the
|
||||||
condition variable.
|
condition variable.
|
||||||
|
|
||||||
The I<timeout> parameter specifies the waiting time in milliseconds.
|
The I<timeout> parameter specifies the waiting time in milliseconds.
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ strings in the specified encodings.
|
|||||||
|
|
||||||
Converts the Unicode code I<unit> to lowercase.
|
Converts the Unicode code I<unit> to lowercase.
|
||||||
|
|
||||||
The conversion is performed for characters in the Basic Multilingual Plane
|
The conversion is performed for characters in the Basic Multilingual Plane
|
||||||
(i.e., the first 65,536 codes).
|
(i.e., the first 65,536 codes).
|
||||||
|
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ The conversion is performed for characters in the Basic Multilingual Plane
|
|||||||
|
|
||||||
Converts the Unicode code I<unit> to uppercase.
|
Converts the Unicode code I<unit> to uppercase.
|
||||||
|
|
||||||
The conversion is performed for characters in the Basic Multilingual Plane
|
The conversion is performed for characters in the Basic Multilingual Plane
|
||||||
(i.e., the first 65,536 codes).
|
(i.e., the first 65,536 codes).
|
||||||
|
|
||||||
|
|
||||||
@@ -50,12 +50,12 @@ The conversion is performed for characters in the Basic Multilingual Plane
|
|||||||
size_t size,
|
size_t size,
|
||||||
uint32_t *unit);
|
uint32_t *unit);
|
||||||
|
|
||||||
Decodes the UTF-8 sequence from I<string> (with the specified length I<size>)
|
Decodes the UTF-8 sequence from I<string> (with the specified length I<size>)
|
||||||
and writes the code to I<unit>.
|
and writes the code to I<unit>.
|
||||||
|
|
||||||
Invalid UTF-8 sequences will be converted to code -1.
|
Invalid UTF-8 sequences will be converted to code -1.
|
||||||
|
|
||||||
If successful, the function returns the number of bytes read or 0 if I<string>
|
If successful, the function returns the number of bytes read or 0 if I<string>
|
||||||
contains only part of the sequence.
|
contains only part of the sequence.
|
||||||
|
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ and writes the code to I<unit>.
|
|||||||
|
|
||||||
Invalid UTF-16LE sequences will be converted to code -1.
|
Invalid UTF-16LE sequences will be converted to code -1.
|
||||||
|
|
||||||
If successful, the function returns the number of bytes read or 0 if I<string>
|
If successful, the function returns the number of bytes read or 0 if I<string>
|
||||||
contains only part of the sequence.
|
contains only part of the sequence.
|
||||||
|
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ and writes the code to I<unit>.
|
|||||||
|
|
||||||
Invalid UTF-16BE sequences will be converted to code -1.
|
Invalid UTF-16BE sequences will be converted to code -1.
|
||||||
|
|
||||||
If successful, the function returns the number of bytes read or 0 if I<string>
|
If successful, the function returns the number of bytes read or 0 if I<string>
|
||||||
contains only part of the sequence.
|
contains only part of the sequence.
|
||||||
|
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ and writes the code to I<unit>.
|
|||||||
|
|
||||||
Invalid UTF-32LE sequences will be converted to code -1.
|
Invalid UTF-32LE sequences will be converted to code -1.
|
||||||
|
|
||||||
If successful, the function returns the number of bytes read or 0 if I<string>
|
If successful, the function returns the number of bytes read or 0 if I<string>
|
||||||
contains only part of the sequence.
|
contains only part of the sequence.
|
||||||
|
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ and writes the code to I<unit>.
|
|||||||
|
|
||||||
Invalid UTF-32BE sequences will be converted to code -1.
|
Invalid UTF-32BE sequences will be converted to code -1.
|
||||||
|
|
||||||
If successful, the function returns the number of bytes read or 0 if I<string>
|
If successful, the function returns the number of bytes read or 0 if I<string>
|
||||||
contains only part of the sequence.
|
contains only part of the sequence.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Util - Utility Functions
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Util library provides a set of functions for working with numbers in
|
The BH_Util library provides a set of functions for working with numbers in
|
||||||
little-endian and big-endian formats, as well as for classifying floating-point
|
little-endian and big-endian formats, as well as for classifying floating-point
|
||||||
values.
|
values.
|
||||||
|
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ Reads a signed 64-bit big-endian integer from the buffer.
|
|||||||
|
|
||||||
=head2 BH_Write16LEu
|
=head2 BH_Write16LEu
|
||||||
|
|
||||||
void BH_Write16LEu(char *buffer,
|
void BH_Write16LEu(char *buffer,
|
||||||
uint16_t value);
|
uint16_t value);
|
||||||
|
|
||||||
Writes an unsigned 16-bit little-endian integer to the buffer.
|
Writes an unsigned 16-bit little-endian integer to the buffer.
|
||||||
@@ -158,7 +158,7 @@ Writes a signed 16-bit little-endian integer to the buffer.
|
|||||||
|
|
||||||
=head2 BH_Write32LEu
|
=head2 BH_Write32LEu
|
||||||
|
|
||||||
void BH_Write32LEu(char *buffer,
|
void BH_Write32LEu(char *buffer,
|
||||||
uint32_t value);
|
uint32_t value);
|
||||||
|
|
||||||
Writes an unsigned 32-bit little-endian integer to the buffer.
|
Writes an unsigned 32-bit little-endian integer to the buffer.
|
||||||
@@ -166,7 +166,7 @@ Writes an unsigned 32-bit little-endian integer to the buffer.
|
|||||||
|
|
||||||
=head2 BH_Write32LEs
|
=head2 BH_Write32LEs
|
||||||
|
|
||||||
void BH_Write32LEs(char *buffer,
|
void BH_Write32LEs(char *buffer,
|
||||||
int32_t value);
|
int32_t value);
|
||||||
|
|
||||||
Writes a signed 32-bit little-endian integer to the buffer.
|
Writes a signed 32-bit little-endian integer to the buffer.
|
||||||
@@ -206,7 +206,7 @@ Writes a signed 16-bit big-endian integer to the buffer.
|
|||||||
|
|
||||||
=head2 BH_Write32BEu
|
=head2 BH_Write32BEu
|
||||||
|
|
||||||
void BH_Write32BEu(char *buffer,
|
void BH_Write32BEu(char *buffer,
|
||||||
uint32_t value);
|
uint32_t value);
|
||||||
|
|
||||||
Writes an unsigned 32-bit big-endian integer to the buffer.
|
Writes an unsigned 32-bit big-endian integer to the buffer.
|
||||||
@@ -214,7 +214,7 @@ Writes an unsigned 32-bit big-endian integer to the buffer.
|
|||||||
|
|
||||||
=head2 BH_Write32BEs
|
=head2 BH_Write32BEs
|
||||||
|
|
||||||
void BH_Write32BEs(char *buffer,
|
void BH_Write32BEs(char *buffer,
|
||||||
int32_t value);
|
int32_t value);
|
||||||
|
|
||||||
Writes a signed 32-bit big-endian integer to the buffer.
|
Writes a signed 32-bit big-endian integer to the buffer.
|
||||||
@@ -222,7 +222,7 @@ Writes a signed 32-bit big-endian integer to the buffer.
|
|||||||
|
|
||||||
=head2 BH_Write64BEu
|
=head2 BH_Write64BEu
|
||||||
|
|
||||||
void BH_Write64BEu(char *buffer,
|
void BH_Write64BEu(char *buffer,
|
||||||
uint64_t value);
|
uint64_t value);
|
||||||
|
|
||||||
Writes an unsigned 64-bit big-endian integer to the buffer.
|
Writes an unsigned 64-bit big-endian integer to the buffer.
|
||||||
@@ -230,7 +230,7 @@ Writes an unsigned 64-bit big-endian integer to the buffer.
|
|||||||
|
|
||||||
=head2 BH_Write64BEs
|
=head2 BH_Write64BEs
|
||||||
|
|
||||||
void BH_Write64BEs(char *buffer,
|
void BH_Write64BEs(char *buffer,
|
||||||
int64_t value);
|
int64_t value);
|
||||||
|
|
||||||
Writes a signed 64-bit big-endian integer to the buffer.
|
Writes a signed 64-bit big-endian integer to the buffer.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ BH_Vec2f - two-dimensional real vector
|
|||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Vec2f module provides a set of functions for working with two-dimensional
|
The BH_Vec2f module provides a set of functions for working with two-dimensional
|
||||||
vectors. It includes operations for addition, subtraction, multiplication,
|
vectors. It includes operations for addition, subtraction, multiplication,
|
||||||
scaling, calculating the dot and cross product, as well as normalizing vectors.
|
scaling, calculating the dot and cross product, as well as normalizing vectors.
|
||||||
|
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ The I<out> parameter describes the resulting vector.
|
|||||||
float t,
|
float t,
|
||||||
float out[2]);
|
float out[2]);
|
||||||
|
|
||||||
Performs linear interpolation between two vectors I<a> and I<b> with parameter
|
Performs linear interpolation between two vectors I<a> and I<b> with parameter
|
||||||
I<t>.
|
I<t>.
|
||||||
|
|
||||||
The I<out> parameter describes the resulting vector.
|
The I<out> parameter describes the resulting vector.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Vec2i - two-dimensional integer vector
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ BH_Vec3f - three-dimensional real vector
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Vec3f module provides a set of functions for working with
|
The BH_Vec3f module provides a set of functions for working with
|
||||||
three-dimensional vectors. The functions allow performing arithmetic operations,
|
three-dimensional vectors. The functions allow performing arithmetic operations,
|
||||||
calculating scalar and vector products, normalizing vectors, and performing
|
calculating scalar and vector products, normalizing vectors, and performing
|
||||||
other vector operations.
|
other vector operations.
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ BH_Vec3i - three-dimensional integer vector
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Vec3i module provides a set of functions for working with
|
The BH_Vec3i module provides a set of functions for working with
|
||||||
three-dimensional integer vectors.
|
three-dimensional integer vectors.
|
||||||
|
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ The I<out> parameter describes the resulting vector.
|
|||||||
const int c[3],
|
const int c[3],
|
||||||
int out[3]);
|
int out[3]);
|
||||||
|
|
||||||
Calculates the result of the sum I<c> and the result of multiplying vectors
|
Calculates the result of the sum I<c> and the result of multiplying vectors
|
||||||
I<a> and I<b>.
|
I<a> and I<b>.
|
||||||
|
|
||||||
The I<out> parameter describes the resulting vector.
|
The I<out> parameter describes the resulting vector.
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ BH_Vec4f - four-dimensional real vector
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Vec4f module provides a set of functions for working with
|
The BH_Vec4f module provides a set of functions for working with
|
||||||
four-dimensional vectors. The functions allow performing arithmetic operations,
|
four-dimensional vectors. The functions allow performing arithmetic operations,
|
||||||
normalization, calculating the dot product, and other mathematical operations
|
normalization, calculating the dot product, and other mathematical operations
|
||||||
on vectors.
|
on vectors.
|
||||||
|
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ The I<out> parameter describes the resulting vector.
|
|||||||
float t,
|
float t,
|
||||||
float out[4]);
|
float out[4]);
|
||||||
|
|
||||||
Performs linear interpolation between two vectors I<a> and I<b> with parameter
|
Performs linear interpolation between two vectors I<a> and I<b> with parameter
|
||||||
I<t>.
|
I<t>.
|
||||||
|
|
||||||
The I<out> parameter describes the resulting vector.
|
The I<out> parameter describes the resulting vector.
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ BH_Vec4i - four-dimensional integer vector
|
|||||||
=head1 SYNTAX
|
=head1 SYNTAX
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
The BH_Vec4i module provides a set of functions for working with
|
The BH_Vec4i module provides a set of functions for working with
|
||||||
four-dimensional integer vectors.
|
four-dimensional integer vectors.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,19 +27,19 @@ BH_Algo - Общие алгоритмы
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Обмен значениями (L</BH_Swap>)
|
Обмен значениями (L</BH_Swap>)
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Разбиение массива (L</BH_Partition>)
|
Разбиение массива (L</BH_Partition>)
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Сортировка (L</BH_Sort>)
|
Сортировка (L</BH_Sort>)
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Работа с кучей (L</BH_HeapMake>, L</BH_HeapRemove>, L</BH_HeapInsert>,
|
Работа с кучей (L</BH_HeapMake>, L</BH_HeapRemove>, L</BH_HeapInsert>,
|
||||||
L</BH_HeapReplace>)
|
L</BH_HeapReplace>)
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
|
|||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Модуль BH_Box2f предоставляет функции для работы с двухмерными ограничивающими
|
Модуль BH_Box2f предоставляет функции для работы с двухмерными ограничивающими
|
||||||
прямоугольниками. Он включает в себя операции объединения, пересечения, проверки
|
прямоугольниками. Он включает в себя операции объединения, пересечения, проверки
|
||||||
вхождения точки в прямоугольник и вычисления ограничивающего прямоугольника по
|
вхождения точки в прямоугольник и вычисления ограничивающего прямоугольника по
|
||||||
набору точек.
|
набору точек.
|
||||||
@@ -39,7 +39,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
|
|||||||
|
|
||||||
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
||||||
|
|
||||||
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
||||||
прямоугольник.
|
прямоугольник.
|
||||||
|
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
|
|||||||
|
|
||||||
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
||||||
|
|
||||||
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
||||||
прямоугольник.
|
прямоугольник.
|
||||||
|
|
||||||
Возвращает 0 в случае успешного пересечения или код ошибки.
|
Возвращает 0 в случае успешного пересечения или код ошибки.
|
||||||
@@ -90,7 +90,7 @@ BH_Box2f - двухмерный ограничивающий прямоугол
|
|||||||
|
|
||||||
Параметры I<points> и I<size> описывают входной массив точек.
|
Параметры I<points> и I<size> описывают входной массив точек.
|
||||||
|
|
||||||
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
||||||
прямоугольник.
|
прямоугольник.
|
||||||
|
|
||||||
Возвращает 0 в случае успешного вычисления или код ошибки.
|
Возвращает 0 в случае успешного вычисления или код ошибки.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math/Box3f.h>
|
#include <BH/Math/Box3f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
|
|||||||
|
|
||||||
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
||||||
|
|
||||||
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
||||||
прямоугольник.
|
прямоугольник.
|
||||||
|
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
|
|||||||
|
|
||||||
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
Параметры I<bMin> и I<bMax> описывают ограничивающий прямоугольник B.
|
||||||
|
|
||||||
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
||||||
прямоугольник.
|
прямоугольник.
|
||||||
|
|
||||||
Возвращает 0 в случае успешного пересечения или код ошибки.
|
Возвращает 0 в случае успешного пересечения или код ошибки.
|
||||||
@@ -91,7 +91,7 @@ BH_Box3f - трёхмерный ограничивающий прямоугол
|
|||||||
|
|
||||||
Параметры I<points> и I<size> описывают входной массив точек.
|
Параметры I<points> и I<size> описывают входной массив точек.
|
||||||
|
|
||||||
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
Параметры I<outMin> и I<outMax> описывают результирующий ограничивающий
|
||||||
прямоугольник.
|
прямоугольник.
|
||||||
|
|
||||||
Возвращает 0 в случае успеха или код ошибки.
|
Возвращает 0 в случае успеха или код ошибки.
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Hashmap - неупорядочный ассоциативный массив
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Hashmap.h>
|
#include <BH/Hashmap.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Библиотека BH_Hashmap предоставляет реализацию неупорядоченного ассоциативного
|
Библиотека BH_Hashmap предоставляет реализацию неупорядоченного ассоциативного
|
||||||
массива, основанного на хэш-таблице. Она позволяет эффективно хранить и
|
массива, основанного на хэш-таблице. Она позволяет эффективно хранить и
|
||||||
извлекать данные по ключу.
|
извлекать данные по ключу.
|
||||||
|
|
||||||
|
|
||||||
@@ -30,10 +30,10 @@ BH_Hashmap - неупорядочный ассоциативный массив
|
|||||||
|
|
||||||
Создаёт ассоциативный массив.
|
Создаёт ассоциативный массив.
|
||||||
|
|
||||||
Параметр I<equal> принимает указатель на функцию, которая сравнивает два
|
Параметр I<equal> принимает указатель на функцию, которая сравнивает два
|
||||||
элемента.
|
элемента.
|
||||||
|
|
||||||
Параметр I<hash> принимает указатель на функцию, вычисляющую хэш-значение
|
Параметр I<hash> принимает указатель на функцию, вычисляющую хэш-значение
|
||||||
элемента.
|
элемента.
|
||||||
|
|
||||||
В случае успеха функция возвращает указатель на новый объект BH_Hashmap или NULL
|
В случае успеха функция возвращает указатель на новый объект BH_Hashmap или NULL
|
||||||
@@ -88,7 +88,7 @@ BH_Hashmap - неупорядочный ассоциативный массив
|
|||||||
|
|
||||||
Удаляет элемент с заданным значением ключа I<key>.
|
Удаляет элемент с заданным значением ключа I<key>.
|
||||||
|
|
||||||
Если ассоциативный массив содержит несколько элементов с одинаковым значением
|
Если ассоциативный массив содержит несколько элементов с одинаковым значением
|
||||||
ключа, функция удалит только одну пару ключ-значение.
|
ключа, функция удалит только одну пару ключ-значение.
|
||||||
|
|
||||||
Вызов этой функции делает существующие итераторы недействительными.
|
Вызов этой функции делает существующие итераторы недействительными.
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ BH_Line - прямая на плоскости.
|
|||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Модуль BH_Line предоставляет функции для работы с прямыми на плоскости. Он
|
Модуль BH_Line предоставляет функции для работы с прямыми на плоскости. Он
|
||||||
позволяет вычислять коэффициенты прямой по двум точкам, находить расстояние от
|
позволяет вычислять коэффициенты прямой по двум точкам, находить расстояние от
|
||||||
точки до прямой и определять ближайшую точку на прямой к заданной точке.
|
точки до прямой и определять ближайшую точку на прямой к заданной точке.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Mat3f - вещественная матрица 3x3
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math/Mat3f.h>
|
#include <BH/Math/Mat3f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Mat4f - вещественная матрица 4x4
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math/Mat4f.h>
|
#include <BH/Math/Mat4f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ BH_Mat4f - вещественная матрица 4x4
|
|||||||
|
|
||||||
Модуль BH_Mat4f предоставляет набор функций для работы с вещественными матрицами
|
Модуль BH_Mat4f предоставляет набор функций для работы с вещественными матрицами
|
||||||
размером 4x4. Эти функции позволяют выполнять различные операции над матрицами,
|
размером 4x4. Эти функции позволяют выполнять различные операции над матрицами,
|
||||||
такие как сложение, вычитание, умножение, транспонирование, вычисление
|
такие как сложение, вычитание, умножение, транспонирование, вычисление
|
||||||
определителя и другие.
|
определителя и другие.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ BH_Math - Математические функции
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Библиотека BH_Math предоставляет набор математических функций для различных
|
Библиотека BH_Math предоставляет набор математических функций для различных
|
||||||
вычислений.
|
вычислений.
|
||||||
|
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ BH_Math - Математические функции
|
|||||||
const float point[3],
|
const float point[3],
|
||||||
float out[3]);
|
float out[3]);
|
||||||
|
|
||||||
Вычисляет барицентрические координаты точки I<point> относительно треугольника,
|
Вычисляет барицентрические координаты точки I<point> относительно треугольника,
|
||||||
заданного точками I<a>, I<b>, I<c>.
|
заданного точками I<a>, I<b>, I<c>.
|
||||||
|
|
||||||
Параметр I<out> описывает результирующий вектор.
|
Параметр I<out> описывает результирующий вектор.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Plane - Плоскость в пространстве
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ cc prog.c -o prog -lbh
|
|||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Данный модуль предоставляет набор функций для работы с кватернионами.
|
Данный модуль предоставляет набор функций для работы с кватернионами.
|
||||||
Кватернионы используются для представления вращений в трёхмерном пространстве и
|
Кватернионы используются для представления вращений в трёхмерном пространстве и
|
||||||
обладают преимуществами перед другими методами, такими как матрицы вращения или
|
обладают преимуществами перед другими методами, такими как матрицы вращения или
|
||||||
углы Эйлера, в части устойчивости к накоплению ошибок при многократных операциях
|
углы Эйлера, в части устойчивости к накоплению ошибок при многократных операциях
|
||||||
вращения.
|
вращения.
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ float BH_Vec4fLength(const float in[4]);
|
|||||||
#define BH_Quat4fLerp(a, b, t, out) \
|
#define BH_Quat4fLerp(a, b, t, out) \
|
||||||
BH_Vec4fLerp(a, b, t, out)
|
BH_Vec4fLerp(a, b, t, out)
|
||||||
|
|
||||||
Выполняет линейную интерполяцию между двумя кватернионами I<a> и I<b> с
|
Выполняет линейную интерполяцию между двумя кватернионами I<a> и I<b> с
|
||||||
параметром I<t>.
|
параметром I<t>.
|
||||||
|
|
||||||
Параметр I<out> описывает результирующий кватернион.
|
Параметр I<out> описывает результирующий кватернион.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Queue - контейнер очереди
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Queue.h>
|
#include <BH/Queue.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ BH_Queue - контейнер очереди
|
|||||||
|
|
||||||
Модуль BH_Queue предоставляет реализацию контейнера очереди, который позволяет
|
Модуль BH_Queue предоставляет реализацию контейнера очереди, который позволяет
|
||||||
добавлять элементы в конец и извлекать их из начала. Очередь основана на
|
добавлять элементы в конец и извлекать их из начала. Очередь основана на
|
||||||
динамическом массиве, что обеспечивает эффективное использование памяти и
|
динамическом массиве, что обеспечивает эффективное использование памяти и
|
||||||
быстрый доступ к элементам.
|
быстрый доступ к элементам.
|
||||||
|
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ BH_Queue - контейнер очереди
|
|||||||
|
|
||||||
=head2 BH_QueueReserve
|
=head2 BH_QueueReserve
|
||||||
|
|
||||||
int BH_QueueReserve(BH_Queue *queue,
|
int BH_QueueReserve(BH_Queue *queue,
|
||||||
size_t size);
|
size_t size);
|
||||||
|
|
||||||
Резервирует место как минимум для I<size> элементов.
|
Резервирует место как минимум для I<size> элементов.
|
||||||
@@ -62,7 +62,7 @@ BH_Queue - контейнер очереди
|
|||||||
|
|
||||||
=head2 BH_QueueInsert
|
=head2 BH_QueueInsert
|
||||||
|
|
||||||
int BH_QueueInsert(BH_Queue *queue,
|
int BH_QueueInsert(BH_Queue *queue,
|
||||||
void *value);
|
void *value);
|
||||||
|
|
||||||
Вставляет элемент I<value>.
|
Вставляет элемент I<value>.
|
||||||
@@ -83,7 +83,7 @@ BH_Queue - контейнер очереди
|
|||||||
|
|
||||||
=head2 BH_QueueFront
|
=head2 BH_QueueFront
|
||||||
|
|
||||||
int BH_QueueFront(BH_Queue *queue,
|
int BH_QueueFront(BH_Queue *queue,
|
||||||
void **value);
|
void **value);
|
||||||
|
|
||||||
Возвращает первый элемент очереди.
|
Возвращает первый элемент очереди.
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Ray2f, BH_Segment2f - Луч/сегмент на плоскости
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math/Ray2f.h>
|
#include <BH/Math/Ray2f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Данный модуль предоставляет функции для работы с лучами и сегментами на
|
Данный модуль предоставляет функции для работы с лучами и сегментами на
|
||||||
плоскости. Он включает в себя функции для проверки пересечений между лучами,
|
плоскости. Он включает в себя функции для проверки пересечений между лучами,
|
||||||
сегментами, прямыми и ограничивающими прямоугольниками.
|
сегментами, прямыми и ограничивающими прямоугольниками.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,15 +9,15 @@ BH_Ray3f, BH_Segment3f - луч/сегмент в пространстве
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math/Ray3f.h>
|
#include <BH/Math/Ray3f.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Данный модуль предоставляет функции для работы с лучами и сегментами в
|
Данный модуль предоставляет функции для работы с лучами и сегментами в
|
||||||
трёхмерном пространстве. Он включает в себя методы для проверки пересечений
|
трёхмерном пространстве. Он включает в себя методы для проверки пересечений
|
||||||
лучей и сегментов с плоскостями, треугольниками и ограничивающими
|
лучей и сегментов с плоскостями, треугольниками и ограничивающими
|
||||||
прямоугольниками.
|
прямоугольниками.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ BH_String - Работа со строками
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
Если префикс I<0b> - основние 2
|
Если префикс I<0b> - основние 2
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ BH_String - Работа со строками
|
|||||||
Форматирует вещественное число I<value> в нуль-терминированную строку I<string>
|
Форматирует вещественное число I<value> в нуль-терминированную строку I<string>
|
||||||
(с ограничением по длинне I<size>).
|
(с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<format> задает формат преобразования числа в строку. Допустимые
|
Параметр I<format> задает формат преобразования числа в строку. Допустимые
|
||||||
форматы:
|
форматы:
|
||||||
|
|
||||||
=over
|
=over
|
||||||
@@ -81,8 +81,8 @@ BH_String - Работа со строками
|
|||||||
=back
|
=back
|
||||||
|
|
||||||
Параметр I<precision> задает точность преобразования числа в строку. Если
|
Параметр I<precision> задает точность преобразования числа в строку. Если
|
||||||
значение точности отрицательное, преобразование будет выполнено с минимально
|
значение точности отрицательное, преобразование будет выполнено с минимально
|
||||||
необходимой точностью, чтобы при обратном преобразовании получилось исходное
|
необходимой точностью, чтобы при обратном преобразовании получилось исходное
|
||||||
число.
|
число.
|
||||||
|
|
||||||
Опциональный параметр I<actual> возвращает длину записанной строки.
|
Опциональный параметр I<actual> возвращает длину записанной строки.
|
||||||
@@ -101,7 +101,7 @@ BH_String - Работа со строками
|
|||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 8-битное знаковое число I<value> в нуль-терминированную строку
|
Форматирует целое 8-битное знаковое число I<value> в нуль-терминированную строку
|
||||||
I<string> (с ограничением по длинне I<size>).
|
I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -118,8 +118,8 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 16-битное знаковое число I<value> в нуль-терминированную
|
Форматирует целое 16-битное знаковое число I<value> в нуль-терминированную
|
||||||
строку I<string> (с ограничением по длинне I<size>).
|
строку I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -136,8 +136,8 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 32-битное знаковое число I<value> в нуль-терминированную
|
Форматирует целое 32-битное знаковое число I<value> в нуль-терминированную
|
||||||
строку I<string> (с ограничением по длинне I<size>).
|
строку I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -154,8 +154,8 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 64-битное знаковое число I<value> в нуль-терминированную
|
Форматирует целое 64-битное знаковое число I<value> в нуль-терминированную
|
||||||
строку I<string> (с ограничением по длинне I<size>).
|
строку I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -172,8 +172,8 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 8-битное беззнаковое число I<value> в нуль-терминированную
|
Форматирует целое 8-битное беззнаковое число I<value> в нуль-терминированную
|
||||||
строку I<string> (с ограничением по длинне I<size>).
|
строку I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -190,8 +190,8 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 16-битное беззнаковое число I<value> в нуль-терминированную
|
Форматирует целое 16-битное беззнаковое число I<value> в нуль-терминированную
|
||||||
строку I<string> (с ограничением по длинне I<size>).
|
строку I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -208,8 +208,8 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 32-битное беззнаковое число I<value> в нуль-терминированную
|
Форматирует целое 32-битное беззнаковое число I<value> в нуль-терминированную
|
||||||
строку I<string> (с ограничением по длинне I<size>).
|
строку I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -226,8 +226,8 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
int base,
|
int base,
|
||||||
size_t *actual);
|
size_t *actual);
|
||||||
|
|
||||||
Форматирует целое 64-битное беззнаковое число I<value> в нуль-терминированную
|
Форматирует целое 64-битное беззнаковое число I<value> в нуль-терминированную
|
||||||
строку I<string> (с ограничением по длинне I<size>).
|
строку I<string> (с ограничением по длинне I<size>).
|
||||||
|
|
||||||
Параметр I<base> задает основание для преобразования.
|
Параметр I<base> задает основание для преобразования.
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в вещественное число.
|
Преобразовывает строку I<string> в вещественное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
В случае успеха, возвращает преобразованное число или 0.
|
В случае успеха, возвращает преобразованное число или 0.
|
||||||
|
|
||||||
@@ -256,7 +256,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое знаковое 8-битное число.
|
Преобразовывает строку I<string> в целое знаковое 8-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
@@ -271,7 +271,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое знаковое 16-битное число.
|
Преобразовывает строку I<string> в целое знаковое 16-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое знаковое 32-битное число.
|
Преобразовывает строку I<string> в целое знаковое 32-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
@@ -301,7 +301,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое знаковое 64-битное число.
|
Преобразовывает строку I<string> в целое знаковое 64-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
@@ -316,7 +316,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое беззнаковое 8-битное число.
|
Преобразовывает строку I<string> в целое беззнаковое 8-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое беззнаковое 16-битное число.
|
Преобразовывает строку I<string> в целое беззнаковое 16-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
@@ -346,7 +346,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое беззнаковое 32-битное число.
|
Преобразовывает строку I<string> в целое беззнаковое 32-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
@@ -361,7 +361,7 @@ I<string> (с ограничением по длинне I<size>).
|
|||||||
|
|
||||||
Преобразовывает строку I<string> в целое беззнаковое 64-битное число.
|
Преобразовывает строку I<string> в целое беззнаковое 64-битное число.
|
||||||
|
|
||||||
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
Опциональный параметр I<size> возвращает число прочитанных символов из строки.
|
||||||
|
|
||||||
Опциональный параметр I<base> задает основание числа.
|
Опциональный параметр I<base> задает основание числа.
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Thread - многопоточность и примитивы синхрон
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Thread.h>
|
#include <BH/Thread.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ I<timeout>.
|
|||||||
int BH_ConditionWait(BH_Condition *condition,
|
int BH_ConditionWait(BH_Condition *condition,
|
||||||
BH_Mutex *mutex);
|
BH_Mutex *mutex);
|
||||||
|
|
||||||
Блокирует исполнение текущего потока до тех пор, пока другой поток не
|
Блокирует исполнение текущего потока до тех пор, пока другой поток не
|
||||||
просигнализирует об изменении условия.
|
просигнализирует об изменении условия.
|
||||||
|
|
||||||
В некоторых ситуациях сигнал об изменении условия может быть ложным.
|
В некоторых ситуациях сигнал об изменении условия может быть ложным.
|
||||||
@@ -206,7 +206,7 @@ I<timeout>.
|
|||||||
uint32_t timeout);
|
uint32_t timeout);
|
||||||
|
|
||||||
Пытается заблокировать исполнение текущего потока до тех пор, пока другой поток
|
Пытается заблокировать исполнение текущего потока до тех пор, пока другой поток
|
||||||
не просигнализирует об изменении условия в пределах заданного времени
|
не просигнализирует об изменении условия в пределах заданного времени
|
||||||
I<timeout>.
|
I<timeout>.
|
||||||
|
|
||||||
В некоторых ситуациях сигнал об изменении условия может быть ложным.
|
В некоторых ситуациях сигнал об изменении условия может быть ложным.
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ BH_Util - Вспомогательные функции
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Библиотека BH_Util предоставляет набор функций для работы с числами в форматах
|
Библиотека BH_Util предоставляет набор функций для работы с числами в форматах
|
||||||
little-endian и big-endian, а также для классификации значений с плавающей
|
little-endian и big-endian, а также для классификации значений с плавающей
|
||||||
точкой.
|
точкой.
|
||||||
|
|
||||||
|
|
||||||
@@ -142,7 +142,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write16LEu
|
=head2 BH_Write16LEu
|
||||||
|
|
||||||
void BH_Write16LEu(char *buffer,
|
void BH_Write16LEu(char *buffer,
|
||||||
uint16_t value);
|
uint16_t value);
|
||||||
|
|
||||||
Записывает целое 16-битное беззнаковое little-endian число в буфер.
|
Записывает целое 16-битное беззнаковое little-endian число в буфер.
|
||||||
@@ -150,7 +150,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write16LEs
|
=head2 BH_Write16LEs
|
||||||
|
|
||||||
void BH_Write16LEs(char *buffer,
|
void BH_Write16LEs(char *buffer,
|
||||||
int16_t value);
|
int16_t value);
|
||||||
|
|
||||||
Записывает целое 16-битное знаковое little-endian число в буфер.
|
Записывает целое 16-битное знаковое little-endian число в буфер.
|
||||||
@@ -158,7 +158,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write32LEu
|
=head2 BH_Write32LEu
|
||||||
|
|
||||||
void BH_Write32LEu(char *buffer,
|
void BH_Write32LEu(char *buffer,
|
||||||
uint32_t value);
|
uint32_t value);
|
||||||
|
|
||||||
Записывает целое 32-битное беззнаковое little-endian число в буфер.
|
Записывает целое 32-битное беззнаковое little-endian число в буфер.
|
||||||
@@ -166,7 +166,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write32LEs
|
=head2 BH_Write32LEs
|
||||||
|
|
||||||
void BH_Write32LEs(char *buffer,
|
void BH_Write32LEs(char *buffer,
|
||||||
int32_t value);
|
int32_t value);
|
||||||
|
|
||||||
Записывает целое 32-битное знаковое little-endian число в буфер.
|
Записывает целое 32-битное знаковое little-endian число в буфер.
|
||||||
@@ -174,7 +174,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write64LEu
|
=head2 BH_Write64LEu
|
||||||
|
|
||||||
void BH_Write64LEu(char *buffer,
|
void BH_Write64LEu(char *buffer,
|
||||||
uint64_t value);
|
uint64_t value);
|
||||||
|
|
||||||
Записывает целое 64-битное беззнаковое little-endian число в буфер.
|
Записывает целое 64-битное беззнаковое little-endian число в буфер.
|
||||||
@@ -182,7 +182,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write64LEs
|
=head2 BH_Write64LEs
|
||||||
|
|
||||||
void BH_Write64LEs(char *buffer,
|
void BH_Write64LEs(char *buffer,
|
||||||
int64_t value);
|
int64_t value);
|
||||||
|
|
||||||
Записывает целое 64-битное знаковое little-endian число в буфер.
|
Записывает целое 64-битное знаковое little-endian число в буфер.
|
||||||
@@ -190,7 +190,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write16BEu
|
=head2 BH_Write16BEu
|
||||||
|
|
||||||
void BH_Write16BEu(char *buffer,
|
void BH_Write16BEu(char *buffer,
|
||||||
uint16_t value);
|
uint16_t value);
|
||||||
|
|
||||||
Записывает целое 16-битное беззнаковое big-endian число в буфер.
|
Записывает целое 16-битное беззнаковое big-endian число в буфер.
|
||||||
@@ -198,7 +198,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write16BEs
|
=head2 BH_Write16BEs
|
||||||
|
|
||||||
void BH_Write16BEs(char *buffer,
|
void BH_Write16BEs(char *buffer,
|
||||||
int16_t value);
|
int16_t value);
|
||||||
|
|
||||||
Записывает целое 16-битное знаковое big-endian число в буфер.
|
Записывает целое 16-битное знаковое big-endian число в буфер.
|
||||||
@@ -206,7 +206,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write32BEu
|
=head2 BH_Write32BEu
|
||||||
|
|
||||||
void BH_Write32BEu(char *buffer,
|
void BH_Write32BEu(char *buffer,
|
||||||
uint32_t value);
|
uint32_t value);
|
||||||
|
|
||||||
Записывает целое 32-битное беззнаковое big-endian число в буфер.
|
Записывает целое 32-битное беззнаковое big-endian число в буфер.
|
||||||
@@ -214,7 +214,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write32BEs
|
=head2 BH_Write32BEs
|
||||||
|
|
||||||
void BH_Write32BEs(char *buffer,
|
void BH_Write32BEs(char *buffer,
|
||||||
int32_t value);
|
int32_t value);
|
||||||
|
|
||||||
Записывает целое 32-битное знаковое big-endian число в буфер.
|
Записывает целое 32-битное знаковое big-endian число в буфер.
|
||||||
@@ -222,7 +222,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write64BEu
|
=head2 BH_Write64BEu
|
||||||
|
|
||||||
void BH_Write64BEu(char *buffer,
|
void BH_Write64BEu(char *buffer,
|
||||||
uint64_t value);
|
uint64_t value);
|
||||||
|
|
||||||
Записывает целое 64-битное беззнаковое big-endian число в буфер.
|
Записывает целое 64-битное беззнаковое big-endian число в буфер.
|
||||||
@@ -230,7 +230,7 @@ little-endian и big-endian, а также для классификации з
|
|||||||
|
|
||||||
=head2 BH_Write64BEs
|
=head2 BH_Write64BEs
|
||||||
|
|
||||||
void BH_Write64BEs(char *buffer,
|
void BH_Write64BEs(char *buffer,
|
||||||
int64_t value);
|
int64_t value);
|
||||||
|
|
||||||
Записывает целое 64-битное знаковое big-endian число в буфер.
|
Записывает целое 64-битное знаковое big-endian число в буфер.
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ BH_Vec2i - двухмерный целочисленный вектор
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Модуль BH_Vec2i предоставляет набор функций для работы с двухмерными
|
Модуль BH_Vec2i предоставляет набор функций для работы с двухмерными
|
||||||
целочисленными векторами.
|
целочисленными векторами.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ BH_Vec3i - трёхмерный целочисленный вектор
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ BH_Vec4f - четырёхмерный вещественный вектор
|
|||||||
|
|
||||||
Модуль BH_Vec4f предоставляет набор функций для работы с четырёхмерными
|
Модуль BH_Vec4f предоставляет набор функций для работы с четырёхмерными
|
||||||
векторами. Функции позволяют выполнять арифметические операции, нормализацию,
|
векторами. Функции позволяют выполнять арифметические операции, нормализацию,
|
||||||
вычисление скалярного произведения и другие математические операции над
|
вычисление скалярного произведения и другие математические операции над
|
||||||
векторами.
|
векторами.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ BH_Vec4i - четырёхмерный целочисленный вектор
|
|||||||
=head1 СИНТАКСИС
|
=head1 СИНТАКСИС
|
||||||
|
|
||||||
#include <BH/Math.h>
|
#include <BH/Math.h>
|
||||||
|
|
||||||
cc prog.c -o prog -lbh
|
cc prog.c -o prog -lbh
|
||||||
|
|
||||||
|
|
||||||
=head1 ОПИСАНИЕ
|
=head1 ОПИСАНИЕ
|
||||||
|
|
||||||
Модуль BH_Vec4i предоставляет набор функций для работы с четырёхмерными
|
Модуль BH_Vec4i предоставляет набор функций для работы с четырёхмерными
|
||||||
целочисленными векторами.
|
целочисленными векторами.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ int BH_SemaphoreWaitFor(BH_Semaphore *semaphore,
|
|||||||
uint32_t timeout)
|
uint32_t timeout)
|
||||||
{
|
{
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
|
|
||||||
/* Calculate absoulute time for timed wait */
|
/* Calculate absoulute time for timed wait */
|
||||||
clock_gettime(CLOCK_REALTIME, &ts);
|
clock_gettime(CLOCK_REALTIME, &ts);
|
||||||
ts.tv_sec += timeout / 1000;
|
ts.tv_sec += timeout / 1000;
|
||||||
|
|||||||
Reference in New Issue
Block a user