GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
pod::Prima::types(3) User Contributed Perl Documentation pod::Prima::types(3)

Prima::types - builtin types

Auxiliary second-citizen classes that are not usually created manually but used as results of Prima methods and accepted as inputs. These classes names can be distinguished that their name is started by a lower-case letter.

Overloaded C array that can be used transparently as a normal perl array of numbers. The reason "Prima::array" exists is that Prima methods don't need to do expensive conversions between a perl array of scalars to C array of integers or floats.

Creates a new C array with type either int, double, short, and unsigned short. There are also methods "new_int", "new_double", "new_short", and "new_ushort" that to the same.

BUF, a normal perl string, can be used to initialize the array, if any (and can be pre-populated with pack()). Otherwise an array is created as empty.

Checks whether SCALAR is a "Prima::array" object.
Emulates perl's "substr" except operates not on character but C type level. Returns a new "Prima::array" object.
Assuming two arrays have same type, appends the ARRAY's contents to own content.
Clones the array.

An array of 6 doubles with some helper methods attached.

Named accessory properties for the 6 members. The members can just as well be accessed directly with array syntax.
Clones the matrix object
Resets the matrix to identity
Applies inverse matrix tranformations to an array or arrayref of points, and returns in the same format (i e array for array, ref for ref).
Creates a new object and optionally initializes it with @ARRAY
Multiplies the matrices and stores the result
Rotates the matrix
Scales the matrix
Shears the matrix
Assigns all 6 members at once
Translates the matrix
Applies matrix tranformations to an array or arrayref of points, and returns in the same format (i e array for array, ref for ref).

Represents rectangular object either as rectangle ( X1,Y1,X2,Y2 ) or box ( X,Y,WIDTH,HEIGHT ).

Returns X, Y, WIDTH, HEIGHT
Clones the object
Enlarges the rectangle by N
Rectangle itself is agnostic of its 2D presentation, but assuming the coordinates are inclusive-exclusive, "inclusive" returns X1,Y1,X2,Y2 as inclusive-inclusive rectangle.
Intersects with RECT and stores the result
Returns true if rectangle's width and height are zero
Returns true if both rectangles are equal
Creates new object with rectangle syntax
Creates new object with box syntax
Returns X,Y
Shrinks the rectangle by N
Return WIDTH and HEIGHT
Joins with RECT and stores the result

Dmitry Karasik, <dmitry@karasik.eu.org>.

Prima

2025-07-04 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.