58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
* @param values A 2D array of 4x4 floats in row-major format
* @return An initialized OFMatrix4x4
*/
- (instancetype)initWithValues: (const float [_Nonnull 4][4])values
OF_DESIGNATED_INITIALIZER;
/**
* @brief Mulitplies the receiver with the specified matrix on the left side
* and the receiver on the right side.
*
* @param matrix The matrix to multiply the receiver with
*/
- (void)multiplyWithMatrix: (OFMatrix4x4 *)matrix;
/**
|
|
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
* @param values A 2D array of 4x4 floats in row-major format
* @return An initialized OFMatrix4x4
*/
- (instancetype)initWithValues: (const float [_Nonnull 4][4])values
OF_DESIGNATED_INITIALIZER;
/**
* @brief Multiplies the receiver with the specified matrix on the left side
* and the receiver on the right side.
*
* @param matrix The matrix to multiply the receiver with
*/
- (void)multiplyWithMatrix: (OFMatrix4x4 *)matrix;
/**
|
91
92
93
94
95
96
97
98
99
100
101
102
|
*/
- (OFVector4D)transformedVector: (OFVector4D)vector;
/**
* @brief Transforms the specified vectors in-place according to the matrix.
*
* @param vectors The vectors to transform
*/
- (void)transformVectors: (OFVector4D *)vectors count: (size_t)count;
@end
OF_ASSUME_NONNULL_END
|
>
|
91
92
93
94
95
96
97
98
99
100
101
102
103
|
*/
- (OFVector4D)transformedVector: (OFVector4D)vector;
/**
* @brief Transforms the specified vectors in-place according to the matrix.
*
* @param vectors The vectors to transform
* @param count The count of the specified vectors
*/
- (void)transformVectors: (OFVector4D *)vectors count: (size_t)count;
@end
OF_ASSUME_NONNULL_END
|