MatrixD class

Inheritance
Available extensions

Constructors

MatrixD({Pointer<MatrixC>? originalPointer, double m0 = 0, double m1 = 0, double m2 = 0, double m3 = 0, double m4 = 0, double m5 = 0, double m6 = 0, double m7 = 0, double m8 = 0, double m9 = 0, double m10 = 0, double m11 = 0, double m12 = 0, double m13 = 0, double m14 = 0, double m15 = 0})
MatrixD.fromQuaternion(QuaternionD q)
factory
MatrixD.frustum(double left, double right, double bottom, double top, double nearPlane, double farPlane)
factory
MatrixD.identity()
factory
MatrixD.lookAt(Vector3D eye, Vector3D target, Vector3D up)
factory
MatrixD.mat4(num m0, num m1, num m2, num m3, num m4, num m5, num m6, num m7, num m8, num m9, num m10, num m11, num m12, num m13, num m14, num m15)
factory
MatrixD.ortho(double left, double right, double bottom, double top, double nearPlane, double farPlane)
factory
MatrixD.perspective(double fovY, double aspect, double nearPlane, double farPlane)
factory
MatrixD.rotateAngle(Vector3D axis, double angle)
factory
MatrixD.rotateX(double angle)
factory
MatrixD.rotateXYZ(Vector3D angle)
factory
MatrixD.rotateY(double angle)
factory
MatrixD.rotateZ(double angle)
factory
MatrixD.rotateZYX(Vector3D angle)
factory
MatrixD.scale(double x, double y, double z)
factory
MatrixD.translate(num x, num y, num z)
factory
MatrixD.translateVector3(Vector3D v)
factory
MatrixD.zero()
factory

Properties

allocKey String?
The RaylibTemp slot key used during the most recent toC allocation.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
internalId int
A stable numeric ID assigned on first toC call for pointer-owning structs.
no setterinherited
isDisposed bool
Whether markDisposed has been called on this instance.
no setterinherited
m0 double
getter/setter pair
m1 double
getter/setter pair
m10 double
getter/setter pair
m11 double
getter/setter pair
m12 double
getter/setter pair
m13 double
getter/setter pair
m14 double
getter/setter pair
m15 double
getter/setter pair
m2 double
getter/setter pair
m3 double
getter/setter pair
m4 double
getter/setter pair
m5 double
getter/setter pair
m6 double
getter/setter pair
m7 double
getter/setter pair
m8 double
getter/setter pair
m9 double
getter/setter pair
originalPointer Pointer<MatrixC>?
The C-owned or RaylibTemp-owned native pointer for this struct, if any.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structName String
The Dart-side type name of this struct
no setterinherited
tag String
The slot tag used to disambiguate RaylibTemp keys for this instance.
no setterinherited

Methods

add(MatrixD o) MatrixD
allocateInto(RaylibTemp temp, Pointer<MatrixC> p, String key) → void
Writes all fields into the native struct at p, allocating nested pointers into temp under key as needed.
override
allocatePointer(RaylibTemp temp, String key, [int count = 1]) Pointer<MatrixC>
Allocates a native slot of count elements in temp under key and returns the resulting pointer.
override
clone() MatrixD
Returns a deep copy of this instance, preserving originalPointer.
override
copy() MatrixD
Returns a deep copy of this instance without originalPointer.
inherited
decompose() → (Vector3D, QuaternionD, Vector3D)
determinant() double
format([int x0 = 0]) String

Available on MatrixD, provided by the MatrixDLike extension

getOriginalPointer() Pointer<MatrixC>
Returns originalPointer, throwing a descriptive StateError if unavailable or this instance isDisposed.
inherited
getOriginalPointerAndDispose() Pointer<MatrixC>
Returns originalPointer and immediately calls markDisposed.
inherited
invert() MatrixD
markDisposed() → void
Marks this instance as disposed and clears originalPointer.
inherited
mul(MatrixD o) MatrixD
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onOriginalPointer(void callback(Pointer<MatrixC> p)) → void
Calls callback with originalPointer if it is set, otherwise no-ops.
inherited
set(num m0, num m1, num m2, num m3, num m4, num m5, num m6, num m7, num m8, num m9, num m10, num m11, num m12, num m13, num m14, num m15) MatrixD
setC(MatrixC o) MatrixD
Copies the fields of the native struct o into this instance.
override
setD(MatrixD o) MatrixD
Copies the fields of the Dart struct o into this instance.
override
setTag(String newTag) MatrixD
Sets tag to newTag and returns this for chaining.
inherited
signature() String
Returns a human-readable description of this struct's current field values.
override
sub(MatrixD o) MatrixD
syncInto(RaylibTemp temp, Pointer<MatrixC> p, String key) → void
Syncs Dart-side fields into the already-allocated native pointer p.
inherited
toArray() List<double>
toC(RaylibTemp temp, String key) Pointer<MatrixC>
Returns a native pointer for this struct, allocating or syncing as needed.
inherited
toString() String
A string representation of this object.
inherited
trace() double
transpose() MatrixD
writeInto(MatrixC p) → void
Writes all fields directly into the native struct reference p. For nested structs, use writeInto as well.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited