473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Question on Matrix Transformations

When using the C# for the Matrix Transformation for a 100x200 panel:

1. To Reverse Y axis, I can:
Matrix m = new Matrix(new Rectangle(0,0,100,200), new Point[] {
new Point(0,100), new Point(100,200), new Point(0,0)} );

2. To Reverse X axis, I can:
Matrix m = new Matrix(new Rectangle(0,0,100,200), new Point[] {
new Point(100,0), new Point(100,200), new Point(0,0)} );

My question is:
How to reverse both X and Y axis using the Matrix Transformation?

Thanks,

jo***********@hotmail.com
Nov 16 '05 #1
1 1634
Call RotateAt() and set the angle to 180 degrees.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
"John" <jo***********@hotmail.com> wrote in message
news:d7**************************@posting.google.c om...
When using the C# for the Matrix Transformation for a 100x200 panel:

1. To Reverse Y axis, I can:
Matrix m = new Matrix(new Rectangle(0,0,100,200), new Point[] {
new Point(0,100), new Point(100,200), new Point(0,0)} );

2. To Reverse X axis, I can:
Matrix m = new Matrix(new Rectangle(0,0,100,200), new Point[] {
new Point(100,0), new Point(100,200), new Point(0,0)} );

My question is:
How to reverse both X and Y axis using the Matrix Transformation?

Thanks,

jo***********@hotmail.com

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Ted Lilley | last post by:
What I want to do is pre-load functions with arguments by iterating through a list like so: >>>class myclass: .... pass >>>def func(self, arg): .... print arg >>>mylist = >>>for item...
11
by: Daniel Wilcox | last post by:
I have a question, I have been given a piece of code that apparantly compiles under Visual C++ but I cannot get to compile under g++ 3.2. I have read the FAQ and delved into the Stroustrup book...
6
by: Ben Ingram | last post by:
Hi all, I am writing a template matrix class in which the template parameters are the number of rows and number of columns. There are a number of reasons why this is an appropriate tradeoff for...
2
by: Keith Chadwick | last post by:
I have a several very extensive and complex wizard like interfaces I have to right shortly which will require the user to have IE6. Each of these interfaces will rely heavily on xml and xsl...
10
by: Tom Dacon | last post by:
I'm curious to see if anyone has an opinion on this little design question - I'm doing a computational astronomy library in C#, purely for my own use, and one of the things that happens regularly...
15
by: Jeroen | last post by:
Hi all, I've got a very specific question about the evaluation order in C++. Assume some kind of custom array class, with an overloaded subscript operator. In the following code: { my_array...
16
by: Jeroen | last post by:
Hi all, I have a question which is illustrated by the following piece of code: template <class T> class A { T my_value; }; In a list, I'd like to store pointers to objects of class A....
3
by: crazygrey | last post by:
Hello, I'm a newbie to C++ so excuse me if my question was trivial but it is important to me. I'm implementing a simple code to find the forward kinematics of a robot: #include "stdafx.h"...
0
by: Carl Banks | last post by:
On Sep 22, 4:02 am, Al Kabaila <akaba...@pcug.org.auwrote: I wouldn't since I do pretty advanced stuff and I'm happy to use numpy as-is, but I suspect a lot of people would find a convenient...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.